(int x, int y)
| 1 | class Switch { |
| 2 | int choose(int x, int y) { |
| 3 | int a = 0; |
| 4 | switch (x) { |
| 5 | case 1: |
| 6 | a -= y; |
| 7 | break; |
| 8 | case 2: |
| 9 | a += y; |
| 10 | break; |
| 11 | case 3: |
| 12 | a *= y; |
| 13 | break; |
| 14 | case 4: |
| 15 | a /= y; |
| 16 | break; |
| 17 | default: |
| 18 | a = a - 1; |
| 19 | } |
| 20 | a = a + x; |
| 21 | return a; |
| 22 | } |
| 23 | |
| 24 | int choose2(int x, int y) { |
| 25 | int a = 0; |
nothing calls this directly
no outgoing calls
no test coverage detected