push
circleci
2637 of 5794 relevant lines covered (45.51%)
217873.9 hits per line
1 |
package common
|
|
2 |
|
|
3 |
// Assert test is true, panic otherwise
|
|
4 |
func Assert(test bool) { |
1,339,737✔ |
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 |
} |