(t *testing.T)
| 129 | } |
| 130 | |
| 131 | func TestExplicitFalse(t *testing.T) { |
| 132 | var tristate triStateValue |
| 133 | f := setUpFlagSet(&tristate) |
| 134 | err := f.Parse([]string{"--tristate=false"}) |
| 135 | if err != nil { |
| 136 | t.Fatal("expected no error; got", err) |
| 137 | } |
| 138 | if tristate != triStateFalse { |
| 139 | t.Fatal("expected", triStateFalse, "(triStateFalse) but got", tristate, "instead") |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | func TestImplicitFalse(t *testing.T) { |
| 144 | var tristate triStateValue |
nothing calls this directly
no test coverage detected