(t *testing.T)
| 141 | } |
| 142 | |
| 143 | func TestImplicitFalse(t *testing.T) { |
| 144 | var tristate triStateValue |
| 145 | f := setUpFlagSet(&tristate) |
| 146 | err := f.Parse([]string{}) |
| 147 | if err != nil { |
| 148 | t.Fatal("expected no error; got", err) |
| 149 | } |
| 150 | if tristate != triStateFalse { |
| 151 | t.Fatal("expected", triStateFalse, "(triStateFalse) but got", tristate, "instead") |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | func TestInvalidValue(t *testing.T) { |
| 156 | var tristate triStateValue |
nothing calls this directly
no test coverage detected