org.sonar.api.batch.sensor.test.internal
Class DefaultCoverage
java.lang.Object
org.sonar.api.batch.sensor.test.internal.DefaultCoverage
- All Implemented Interfaces:
- Coverage
public final class DefaultCoverage
- extends Object
- implements Coverage
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
storage
protected final transient SensorStorage storage
DefaultCoverage
public DefaultCoverage()
DefaultCoverage
public DefaultCoverage(SensorStorage storage)
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.