org.hansel.probes
Class UnaryBranchProbe

java.lang.Object
  extended by org.hansel.Probe
      extended by org.hansel.probes.BranchProbe
          extended by org.hansel.probes.UnaryBranchProbe
All Implemented Interfaces:
junit.framework.Test

public class UnaryBranchProbe
extends BranchProbe

A probe for a conditional branch. For decision coverage both possible conditions for the branch have to be encountered.

Author:
Niklas Mehner.

Field Summary
 
Fields inherited from class org.hansel.Probe
HIT_CLASS
 
Constructor Summary
UnaryBranchProbe(ProbeData pd, IntComparator cmp)
           
 
Method Summary
 void hit(int value)
           
 void insertProbeCode(org.objectweb.asm.MethodVisitor cv)
          Returns the code of the probe.
 
Methods inherited from class org.hansel.probes.BranchProbe
cover, coverageFailure, displayFailure, getFailureMessage
 
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
 

Constructor Detail

UnaryBranchProbe

public UnaryBranchProbe(ProbeData pd,
                        IntComparator cmp)
                 throws org.objectweb.asm.tree.analysis.AnalyzerException
Throws:
org.objectweb.asm.tree.analysis.AnalyzerException
Method Detail

hit

public void hit(int value)

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