public interface Instrumentation extends java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FILE_NAME
default file name used to write instrumentation information.
|
Modifier and Type | Method and Description |
---|---|
double |
getBranchCoverageRate() |
double |
getBranchCoverageRate(java.lang.String methodNameAndSignature) |
java.util.Map |
getCoverage() |
long |
getCoverage(int lineNumber) |
double |
getLineCoverageRate() |
double |
getLineCoverageRate(java.lang.String methodNameAndSignature) |
java.util.Set |
getMethodNamesAndSignatures() |
java.lang.String |
getSourceFileName() |
java.util.Set |
getSourceLineNumbers() |
void |
merge(Instrumentation instrumentation)
Merge some existing instrumentation with this instrumentation.
|
void |
touch(int lineNumber)
Increment the number of hits for a particular line of code.
|
static final java.lang.String FILE_NAME
void touch(int lineNumber)
lineNumber
- the line of code to increment the number of hits.java.util.Map getCoverage()
long getCoverage(int lineNumber)
lineNumber
- the source code line number.void merge(Instrumentation instrumentation)
instrumentation
- some existing instrumentation.java.util.Set getSourceLineNumbers()
double getLineCoverageRate()
double getBranchCoverageRate()
double getLineCoverageRate(java.lang.String methodNameAndSignature)
double getBranchCoverageRate(java.lang.String methodNameAndSignature)
java.lang.String getSourceFileName()
java.util.Set getMethodNamesAndSignatures()