circleci
2287 of 5791 relevant lines covered (39.49%)
278215.58 hits per line
1 |
package common
|
|
2 |
|
|
3 |
// Assert test is true, panic otherwise
|
|
4 |
func Assert(test bool) { |
1,902,676✔ |
5 |
if !test {
|
1✔ |
6 |
panic("Assertion failure") |
1✔ |
7 |
} |
1✔ |
8 |
} |
|
9 |
|
|
10 |
func OnOff(b bool) string { |
× |
11 |
if b {
|
× |
12 |
return "on" |
× |
13 |
} |
× |
14 |
return "off" |
× |
15 |
} |