org.sonar.api.batch.sensor.test.internal
Class DefaultCoverage

java.lang.Object
  extended by org.sonar.api.batch.sensor.test.internal.DefaultCoverage
All Implemented Interfaces:
Coverage

public final class DefaultCoverage
extends Object
implements Coverage


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.sonar.api.batch.sensor.test.Coverage
Coverage.CoverageType
 
Field Summary
protected  SensorStorage storage
           
 
Constructor Summary
DefaultCoverage()
           
DefaultCoverage(SensorStorage storage)
           
 
Method Summary
 DefaultCoverage conditions(int lineId, int conditions, int coveredConditions)
           
 InputFile file()
           
 DefaultCoverage lineHits(int lineId, int hits)
           
 DefaultCoverage ofType(Coverage.CoverageType type)
           
 DefaultCoverage onFile(InputFile inputFile)
          The file you are storing coverage on.
 void save()
          Call this method only once when your are done with defining the test case coverage.
 Coverage.CoverageType type()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

storage

protected final transient SensorStorage storage
Constructor Detail

DefaultCoverage

public DefaultCoverage()

DefaultCoverage

public DefaultCoverage(SensorStorage storage)
Method Detail

lineHits

public DefaultCoverage lineHits(int lineId,
                                int hits)
Specified by:
lineHits in interface Coverage

conditions

public DefaultCoverage conditions(int lineId,
                                  int conditions,
                                  int coveredConditions)
Specified by:
conditions in interface Coverage

file

public InputFile file()

onFile

public DefaultCoverage onFile(InputFile inputFile)
Description copied from interface: Coverage
The file you are storing coverage on.

Specified by:
onFile in interface Coverage

type

public Coverage.CoverageType type()

ofType

public DefaultCoverage ofType(Coverage.CoverageType type)
Specified by:
ofType in interface Coverage

save

public void save()
Description copied from interface: Coverage
Call this method only once when your are done with defining the test case coverage.

Specified by:
save in interface Coverage


Copyright © 2009–2015 SonarSource. All rights reserved.