Commit 47c99b4
committed
test: 100% test coverage 🎉
Make CLI, which is mainly for testing, use the no-argument form of
Logger() when possible in order to achieve 100% branch coverage in
Logger() function.
Remove the un-used support for boolean flags that default to true (would
emit a --no-OPT entry in the usage message), bringing the cli itself up
to 100% coverage.
This package now has 100% line and branch coverage.
Signed-off-by: Ryan Graham <r.m.graham@gmail.com>1 parent 213137d commit 47c99b4
2 files changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
51 | | - | |
52 | 53 | | |
53 | | - | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments