(t *testing.T)
| 976 | } |
| 977 | |
| 978 | func TestUint64FlagWithEnvVarHelpOutput(t *testing.T) { |
| 979 | t.Setenv("APP_BAR", "2") |
| 980 | |
| 981 | for _, test := range uint64FlagTests { |
| 982 | fl := &Uint64Flag{Name: test.name, Sources: EnvVars("APP_BAR")} |
| 983 | output := fl.String() |
| 984 | |
| 985 | expectedSuffix := withEnvHint([]string{"APP_BAR"}, "") |
| 986 | if !strings.HasSuffix(output, expectedSuffix) { |
| 987 | t.Errorf("%s does not end with"+expectedSuffix, output) |
| 988 | } |
| 989 | } |
| 990 | } |
| 991 | |
| 992 | func TestUint64FlagValueFromCommand(t *testing.T) { |
| 993 | f := &Uint64Flag{Name: "myflag"} |
nothing calls this directly
no test coverage detected