(t *testing.T)
| 785 | } |
| 786 | |
| 787 | func TestStringSliceFlagWithEnvVarHelpOutput(t *testing.T) { |
| 788 | t.Setenv("APP_QWWX", "11,4") |
| 789 | |
| 790 | for _, test := range stringSliceFlagTests { |
| 791 | fl := &StringSliceFlag{Name: test.name, Aliases: test.aliases, Value: test.value, Sources: EnvVars("APP_QWWX")} |
| 792 | output := fl.String() |
| 793 | |
| 794 | expectedSuffix := withEnvHint([]string{"APP_QWWX"}, "") |
| 795 | if !strings.HasSuffix(output, expectedSuffix) { |
| 796 | t.Errorf("%q does not end with"+expectedSuffix, output) |
| 797 | } |
| 798 | } |
| 799 | } |
| 800 | |
| 801 | func TestStringSliceFlagApply_SetsAllNames(t *testing.T) { |
| 802 | fl := &StringSliceFlag{Name: "goat", Aliases: []string{"G", "gooots"}} |
nothing calls this directly
no test coverage detected