(t *testing.T)
| 936 | } |
| 937 | |
| 938 | func TestUintFlagWithEnvVarHelpOutput(t *testing.T) { |
| 939 | t.Setenv("APP_BAR", "2") |
| 940 | |
| 941 | for _, test := range uintFlagTests { |
| 942 | fl := &Uint64Flag{Name: test.name, Sources: EnvVars("APP_BAR")} |
| 943 | output := fl.String() |
| 944 | |
| 945 | expectedSuffix := withEnvHint([]string{"APP_BAR"}, "") |
| 946 | if !strings.HasSuffix(output, expectedSuffix) { |
| 947 | t.Errorf("%s does not end with"+expectedSuffix, output) |
| 948 | } |
| 949 | } |
| 950 | } |
| 951 | |
| 952 | func TestUintFlagValueFromCommand(t *testing.T) { |
| 953 | fl := &Uint64Flag{Name: "myflag"} |
nothing calls this directly
no test coverage detected