(t *testing.T)
| 1071 | } |
| 1072 | |
| 1073 | func TestIntSliceFlagWithEnvVarHelpOutput(t *testing.T) { |
| 1074 | t.Setenv("APP_SMURF", "42,3") |
| 1075 | |
| 1076 | for _, test := range intSliceFlagTests { |
| 1077 | fl := &Int64SliceFlag{Name: test.name, Aliases: test.aliases, Value: test.value, Sources: EnvVars("APP_SMURF")} |
| 1078 | output := fl.String() |
| 1079 | |
| 1080 | expectedSuffix := withEnvHint([]string{"APP_SMURF"}, "") |
| 1081 | if !strings.HasSuffix(output, expectedSuffix) { |
| 1082 | t.Errorf("%q does not end with"+expectedSuffix, output) |
| 1083 | } |
| 1084 | } |
| 1085 | } |
| 1086 | |
| 1087 | func TestIntSliceFlagApply_SetsAllNames(t *testing.T) { |
| 1088 | fl := &Int64SliceFlag{Name: "bits", Aliases: []string{"B", "bips"}} |
nothing calls this directly
no test coverage detected