circleci
52 of 52 new or added lines in 4 files covered. (100.0%)
4106 of 5219 relevant lines covered (78.67%)
218074.51 hits per line
1 |
package common
|
|
2 |
|
|
3 |
// Assert test is true, panic otherwise
|
|
4 |
func Assert(test bool) { |
3,799✔ |
5 |
if !test {
|
× |
6 |
panic("Assertion failure") |
× |
7 |
} |
× |
8 |
} |
|
9 |
|
|
10 |
func OnOff(b bool) string { |
216✔ |
11 |
if b {
|
104✔ |
12 |
return "on" |
104✔ |
13 |
} |
104✔ |
14 |
return "off" |
112✔ |
15 |
} |