(t *testing.T)
| 64 | } |
| 65 | |
| 66 | func TestExplicitTrue(t *testing.T) { |
| 67 | var tristate triStateValue |
| 68 | f := setUpFlagSet(&tristate) |
| 69 | err := f.Parse([]string{"--tristate=true"}) |
| 70 | if err != nil { |
| 71 | t.Fatal("expected no error; got", err) |
| 72 | } |
| 73 | if tristate != triStateTrue { |
| 74 | t.Fatal("expected", triStateTrue, "(triStateTrue) but got", tristate, "instead") |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | func TestImplicitTrue(t *testing.T) { |
| 79 | var tristate triStateValue |
nothing calls this directly
no test coverage detected