org.hansel.probes
Class BinaryBranchProbe
java.lang.Object
org.hansel.Probe
org.hansel.probes.BranchProbe
org.hansel.probes.BinaryBranchProbe
- All Implemented Interfaces:
- junit.framework.Test
public class BinaryBranchProbe
- extends BranchProbe
A probe for a comparing conditional branch. For decision coverage both possible
conditions for the branch have to be encountered.
- Author:
- Niklas Mehner.
Method Summary |
void |
hit(int n,
int m)
|
void |
insertProbeCode(org.objectweb.asm.MethodVisitor cv)
Returns the code of the probe. |
Methods inherited from class org.hansel.Probe |
addResult, countTestCases, equals, getDescription, getID, getName, getProbeData, hashCode, run, run, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
BinaryBranchProbe
public BinaryBranchProbe(ProbeData pd,
IntComparator cmp)
throws org.objectweb.asm.tree.analysis.AnalyzerException
- Throws:
org.objectweb.asm.tree.analysis.AnalyzerException
hit
public void hit(int n,
int m)
insertProbeCode
public void insertProbeCode(org.objectweb.asm.MethodVisitor cv)
- Description copied from class:
Probe
- Returns the code of the probe.
- Specified by:
insertProbeCode
in class Probe