(t *testing.T)
| 1211 | } |
| 1212 | |
| 1213 | func TestUintSliceFlagWithEnvVarHelpOutput(t *testing.T) { |
| 1214 | t.Setenv("APP_SMURF", "42,17179869184") |
| 1215 | |
| 1216 | for _, test := range uintSliceFlagTests { |
| 1217 | fl := &Uint64SliceFlag{Name: test.name, Value: test.value, Sources: EnvVars("APP_SMURF")} |
| 1218 | output := fl.String() |
| 1219 | |
| 1220 | expectedSuffix := withEnvHint([]string{"APP_SMURF"}, "") |
| 1221 | if !strings.HasSuffix(output, expectedSuffix) { |
| 1222 | t.Errorf("%q does not end with"+expectedSuffix, output) |
| 1223 | } |
| 1224 | } |
| 1225 | } |
| 1226 | |
| 1227 | func TestUintSliceFlagApply_SetsAllNames(t *testing.T) { |
| 1228 | fl := &Uint64SliceFlag{Name: "bits", Aliases: []string{"B", "bips"}} |
nothing calls this directly
no test coverage detected