| java.lang.Object org.hanseltest.CoverSwitch
CoverSwitch | public class CoverSwitch (Code) | | Switch statements to be covered by the testcases.
author: Niklas Mehner |
Method Summary | |
public int | coverNoDefault(int i) Switch without default.
Parameters: i - Switch parameter. | public int | coverSimpleSwitch(int i) Simple switch.
Parameters: i - Switch parameter. | public int | coverSimpleSwitch2(int i) Switch translated to a tableswitch.
Parameters: i - Switch parameter. |
coverNoDefault | public int coverNoDefault(int i)(Code) | | Switch without default.
Parameters: i - Switch parameter. 2, or 3 if i=0. |
coverSimpleSwitch | public int coverSimpleSwitch(int i)(Code) | | Simple switch.
Parameters: i - Switch parameter. 1 if i=0, 2 if i=1, 3 if i=5, 4 otherwise. |
coverSimpleSwitch2 | public int coverSimpleSwitch2(int i)(Code) | | Switch translated to a tableswitch.
Parameters: i - Switch parameter. 1 if i in [1..3], 2 if i in [4..6], 3 else. |
|
|