(t *testing.T)
| 1554 | } |
| 1555 | |
| 1556 | func TestFloat64SliceFlagWithEnvVarHelpOutput(t *testing.T) { |
| 1557 | t.Setenv("APP_SMURF", "0.1234,-10.5") |
| 1558 | for _, test := range float64SliceFlagTests { |
| 1559 | fl := FloatSliceFlag{Name: test.name, Value: test.value, Sources: EnvVars("APP_SMURF")} |
| 1560 | output := fl.String() |
| 1561 | |
| 1562 | expectedSuffix := withEnvHint([]string{"APP_SMURF"}, "") |
| 1563 | if !strings.HasSuffix(output, expectedSuffix) { |
| 1564 | t.Errorf("%q does not end with"+expectedSuffix, output) |
| 1565 | } |
| 1566 | } |
| 1567 | } |
| 1568 | |
| 1569 | func TestFloat64SliceFlagApply_SetsAllNames(t *testing.T) { |
| 1570 | fl := FloatSliceFlag{Name: "bits", Aliases: []string{"B", "bips"}} |
nothing calls this directly
no test coverage detected