| org.hansel.ProbeTable
ProbeTable | public class ProbeTable extends TestSuite (Code) | | This class contains a table of currently active Probes.
It implements the singleton pattern.
author: Niklas Mehner |
Method Summary | |
public int | addProbe(Probe probe) | public void | addProbeDescriptions(Description coverageDesc) | public void | clear() | public Probe | getCached(ProbeData pd) | public int | getCovered() | public int | getProbeIndex() Returns the index for the next probe. | public static ProbeTable | getProbeTable() Returns the singleton instance of the ProbeTable. | public int | getSize() | public void | hit(int index) | public void | hit(int n, int m, int index) | public void | hit(Object obj1, Object obj2, int index) | public void | hit(Object obj, int index) | public void | hit(int value, int index) | public void | hitB(int condition, int index) | public static void | hitBranch(int condition, int index) | public static void | hitBranch(int n, int m, int index) | public static void | hitBranch(Object obj1, Object obj2, int index) | public static void | hitBranch(Object obj, int index) | public static void | hitMethod(int index) This is the method inserted by the instrumentation, to
record execution of a given probe. | public static void | hitSelect(int value, int index) | public void | run(TestResult result) | public void | run(RunNotifier result, Description coverageDescription, boolean hasErrors) | public void | setDisplayStatistics(boolean display) | public static void | setProbeTable(ProbeTable pt) |
clear | public void clear()(Code) | | |
getCovered | public int getCovered()(Code) | | |
getProbeIndex | public int getProbeIndex()(Code) | | Returns the index for the next probe. The index of a probe has to be
unique, because it is used to identify the probe, when a call to
ProbeTable.hit(index) is made by the instrumented code.
Index for the next probe. |
getProbeTable | public static ProbeTable getProbeTable()(Code) | | Returns the singleton instance of the ProbeTable.
ProbeTable. |
getSize | public int getSize()(Code) | | |
hit | public void hit(int index)(Code) | | |
hit | public void hit(int n, int m, int index)(Code) | | |
hit | public void hit(int value, int index)(Code) | | |
hitB | public void hitB(int condition, int index)(Code) | | |
hitBranch | public static void hitBranch(int condition, int index)(Code) | | |
hitBranch | public static void hitBranch(int n, int m, int index)(Code) | | |
hitBranch | public static void hitBranch(Object obj, int index)(Code) | | |
hitMethod | public static void hitMethod(int index)(Code) | | This is the method inserted by the instrumentation, to
record execution of a given probe.
Parameters: index - Index of the probe. |
hitSelect | public static void hitSelect(int value, int index)(Code) | | |
run | public void run(TestResult result)(Code) | | |
setDisplayStatistics | public void setDisplayStatistics(boolean display)(Code) | | |
|
|