net.sourceforge.cobertura.coveragedata
public class SwitchData extends Object implements BranchCoverageData, Comparable, Serializable, HasBeenInstrumented
This class implements HasBeenInstrumented so that when cobertura instruments itself, it will omit this class. It does this to avoid an infinite recursion problem because instrumented classes make use of this class.
Field Summary | |
---|---|
long | defaultHits |
long[] | hits |
int[] | keys |
static long | serialVersionUID |
int | switchNumber |
Constructor Summary | |
---|---|
SwitchData(int switchNumber, int[] keys) | |
SwitchData(int switchNumber, int min, int max) | |
SwitchData(int switchNumber) |
Method Summary | |
---|---|
int | compareTo(Object o) |
boolean | equals(Object obj) |
double | getBranchCoverageRate() |
long | getDefaultHits() |
long | getHits(int branch) |
int | getNumberOfCoveredBranches() |
int | getNumberOfValidBranches() |
int | getSwitchNumber() |
int | hashCode() |
void | merge(BranchCoverageData coverageData) |
void | touchBranch(int branch) |