push
circleci
56 of 56 new or added lines in 1 file covered. (100.0%)
3988 of 5659 relevant lines covered (70.47%)
115221.13 hits per line
1 |
package common
|
|
2 |
|
|
3 |
// Assert test is true, panic otherwise
|
|
4 |
func Assert(test bool) { |
1,618✔ |
5 |
if !test {
|
× |
6 |
panic("Assertion failure") |
× |
7 |
} |
× |
8 |
} |
|
9 |
|
|
10 |
func OnOff(b bool) string { |
184✔ |
11 |
if b {
|
88✔ |
12 |
return "on" |
88✔ |
13 |
} |
88✔ |
14 |
return "off" |
96✔ |
15 |
} |