(t *testing.T)
| 1359 | } |
| 1360 | |
| 1361 | func TestUint64SliceFlagWithEnvVarHelpOutput(t *testing.T) { |
| 1362 | t.Setenv("APP_SMURF", "42,17179869184") |
| 1363 | |
| 1364 | for _, test := range uint64SliceFlagTests { |
| 1365 | fl := Uint64SliceFlag{Name: test.name, Value: test.value, Sources: EnvVars("APP_SMURF")} |
| 1366 | output := fl.String() |
| 1367 | |
| 1368 | expectedSuffix := withEnvHint([]string{"APP_SMURF"}, "") |
| 1369 | if !strings.HasSuffix(output, expectedSuffix) { |
| 1370 | t.Errorf("%q does not end with"+expectedSuffix, output) |
| 1371 | } |
| 1372 | } |
| 1373 | } |
| 1374 | |
| 1375 | func TestUint64SliceFlagApply_SetsAllNames(t *testing.T) { |
| 1376 | fl := Uint64SliceFlag{Name: "bits", Aliases: []string{"B", "bips"}} |
nothing calls this directly
no test coverage detected