|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.groboutils.codecoverage.v2.module.AbstractMeasure
net.sourceforge.groboutils.codecoverage.v2.module.BranchCountMeasure
Processes methods for branch coverage analysis, where each branch instruction and its corresponding not-taken instruction are marked. Currently, this does not support localization.
This is more accurately called "Object Code Branch Coverage", since true branch coverage requires the originating source code to correctly discover the branches.
This measure can be superior to line coverage due to the Java construct of the ?: operation. This hides a branch inside a single statement. Also, some developers may put an if statement and its one-line branch all on the same line, which will hide the branch that was taken.
IAnalysisMetaData
Constructor Summary | |
BranchCountMeasure()
|
Method Summary | |
void |
analyze(IMethodCode method)
Perform the analysis on the method. |
java.lang.String |
getMeasureName()
Returns the human-readable name of the measure. |
java.lang.String |
getMeasureUnit()
Returns the unit name for this particular coverage measure. |
java.lang.String |
getMimeEncoding()
Returns the text format used in meta-data formatted text. |
Methods inherited from class net.sourceforge.groboutils.codecoverage.v2.module.AbstractMeasure |
markInstruction |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BranchCountMeasure()
Method Detail |
public java.lang.String getMeasureName()
public java.lang.String getMeasureUnit()
public java.lang.String getMimeEncoding()
public void analyze(IMethodCode method)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |