(t *testing.T)
| 884 | } |
| 885 | |
| 886 | func TestIntFlagWithEnvVarHelpOutput(t *testing.T) { |
| 887 | t.Setenv("APP_BAR", "2") |
| 888 | |
| 889 | for _, test := range intFlagTests { |
| 890 | fl := &Int64Flag{Name: test.name, Sources: EnvVars("APP_BAR")} |
| 891 | output := fl.String() |
| 892 | |
| 893 | expectedSuffix := withEnvHint([]string{"APP_BAR"}, "") |
| 894 | if !strings.HasSuffix(output, expectedSuffix) { |
| 895 | t.Errorf("%s does not end with"+expectedSuffix, output) |
| 896 | } |
| 897 | } |
| 898 | } |
| 899 | |
| 900 | func TestIntFlagApply_SetsAllNames(t *testing.T) { |
| 901 | v := int64(3) |
nothing calls this directly
no test coverage detected