| java.lang.Object org.hansel.Probe org.hansel.probes.BranchProbe
All known Subclasses: org.hansel.probes.ACmpBranchProbe, org.hansel.probes.BinaryBranchProbe, org.hansel.probes.UnaryBranchProbe, org.hansel.probes.NullCmpBranchProbe, org.hansel.probes.CompBranchProbe,
BranchProbe | abstract public class BranchProbe extends Probe (Code) | | A probe for a conditional branch. For decision coverage both possible
conditions for the branch have to be encountered.
author: Niklas Mehner. |
Method Summary | |
protected void | cover(boolean condition) | public boolean | coverageFailure() | public boolean | displayFailure() Return wether this probe failed to be covered.
A probe for a conditional branch fails, if the branch is only taken,
or only omitted. | public String | getFailureMessage() Return the filure message for this probe. |
cover | protected void cover(boolean condition)(Code) | | |
coverageFailure | public boolean coverageFailure()(Code) | | |
displayFailure | public boolean displayFailure()(Code) | | Return wether this probe failed to be covered.
A probe for a conditional branch fails, if the branch is only taken,
or only omitted. If both cases are encountered, the probe is fully
covered. If the probe is not executed at all, this method still returns
false, because in that case, another probe has to fail (otherwise this
probe had been reached). Because the other failure is more important,
the result of this probe is left out in this case.
true If covering this probe failed. |
getFailureMessage | public String getFailureMessage()(Code) | | Return the filure message for this probe.
Failure message. |
|
|