org.sonar.api.batch.sensor.test
Interface Coverage

All Known Implementing Classes:
DefaultCoverage

public interface Coverage

Since:
5.0

Nested Class Summary
static class Coverage.CoverageType
           
 
Method Summary
 Coverage conditions(int line, int conditions, int coveredConditions)
           
 Coverage lineHits(int line, int hits)
           
 Coverage ofType(Coverage.CoverageType type)
           
 Coverage 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.
 

Method Detail

onFile

Coverage onFile(InputFile inputFile)
The file you are storing coverage on.


ofType

Coverage ofType(Coverage.CoverageType type)

lineHits

Coverage lineHits(int line,
                  int hits)

conditions

Coverage conditions(int line,
                    int conditions,
                    int coveredConditions)

save

void save()
Call this method only once when your are done with defining the test case coverage.



Copyright © 2009–2015 SonarSource. All rights reserved.