(t *testing.T)
| 117 | } |
| 118 | |
| 119 | func TestExplicitMaybe(t *testing.T) { |
| 120 | var tristate triStateValue |
| 121 | f := setUpFlagSet(&tristate) |
| 122 | err := f.Parse([]string{"--tristate=maybe"}) |
| 123 | if err != nil { |
| 124 | t.Fatal("expected no error; got", err) |
| 125 | } |
| 126 | if tristate != triStateMaybe { |
| 127 | t.Fatal("expected", triStateMaybe, "(triStateMaybe) but got", tristate, "instead") |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | func TestExplicitFalse(t *testing.T) { |
| 132 | var tristate triStateValue |
nothing calls this directly
no test coverage detected