|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Instrumentation
Instrumentation information is typically serialized to a file. An instance of this class records coverage information for a single class that has been instrumented.
| Field Summary | |
|---|---|
static java.lang.String |
FILE_NAME
default file name used to write instrumentation information. |
| Method Summary | |
|---|---|
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. |
| Field Detail |
|---|
static final java.lang.String FILE_NAME
| Method Detail |
|---|
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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||