net.sourceforge.groboutils.codecoverage.v2.module
Class CallPairMeasure

java.lang.Object
  extended bynet.sourceforge.groboutils.codecoverage.v2.module.CallPairMeasure
All Implemented Interfaces:
IAnalysisModule

public class CallPairMeasure
extends java.lang.Object
implements IAnalysisModule

Processes methods for call pair coverage analysis, where each function call 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 took.

Since:
February 17, 2003
Version:
$Date: 2003/02/18 23:19:49 $
Author:
Matt Albrecht groboclown@users.sourceforge.net
See Also:
IAnalysisMetaData

Constructor Summary
CallPairMeasure()
           
 
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallPairMeasure

public CallPairMeasure()
Method Detail

getMeasureName

public java.lang.String getMeasureName()
Returns the human-readable name of the measure.

Specified by:
getMeasureName in interface IAnalysisModule

getMeasureUnit

public java.lang.String getMeasureUnit()
Returns the unit name for this particular coverage measure.

Specified by:
getMeasureUnit in interface IAnalysisModule

getMimeEncoding

public java.lang.String getMimeEncoding()
Returns the text format used in meta-data formatted text. This should be the mime encoding type, such as "text/plain" or "text/html".

Specified by:
getMimeEncoding in interface IAnalysisModule

analyze

public void analyze(IMethodCode method)
Perform the analysis on the method.

Specified by:
analyze in interface IAnalysisModule


Copyright © 2001-2003 by The GroboUtils Project