(t *testing.T)
| 76 | } |
| 77 | |
| 78 | func TestImplicitTrue(t *testing.T) { |
| 79 | var tristate triStateValue |
| 80 | f := setUpFlagSet(&tristate) |
| 81 | err := f.Parse([]string{"--tristate"}) |
| 82 | if err != nil { |
| 83 | t.Fatal("expected no error; got", err) |
| 84 | } |
| 85 | if tristate != triStateTrue { |
| 86 | t.Fatal("expected", triStateTrue, "(triStateTrue) but got", tristate, "instead") |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | func TestShortFlag(t *testing.T) { |
| 91 | var tristate triStateValue |
nothing calls this directly
no test coverage detected