|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CoverageMetric
An interface to a test coverage metric.
Method Summary | |
---|---|
void |
clear()
Reset all coverage data. |
int |
getCoverage()
The number of 'items' covered so far. |
java.lang.String |
getDescription()
A medium-length description of this coverage metric. |
java.util.Map<java.lang.Object,java.lang.Integer> |
getDetails()
Details of which items have been covered and how many times. |
int |
getMaximum()
The maximum coverage possible. |
float |
getPercentage()
The current coverage percentage. |
void |
setGraph(InspectableGraph model,
java.util.Map<java.lang.Object,Vertex> state2vertex)
This is called when the graph seems to be complete. |
Methods inherited from interface nz.ac.waikato.modeljunit.ModelListener |
---|
doneGuard, doneReset, doneTransition, failure, getModel, getName, setModel, startAction |
Method Detail |
---|
java.lang.String getDescription()
void clear()
int getCoverage()
int getMaximum()
float getPercentage()
java.util.Map<java.lang.Object,java.lang.Integer> getDetails()
The type of objects in the domain of the result map will depend upon the kind of coverage (Action, Transition, TransitionPair etc.). However, all of them should provide a useful toString() method, so that you can print coverage results. A typical use of this method is to iterate through the result map and print all the objects that map to zero, because they have not been covered.
void setGraph(InspectableGraph model, java.util.Map<java.lang.Object,Vertex> state2vertex)
model
- state2vertex
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |