(t *testing.T)
| 1666 | } |
| 1667 | |
| 1668 | func TestGenericFlagWithEnvVarHelpOutput(t *testing.T) { |
| 1669 | t.Setenv("APP_ZAP", "3") |
| 1670 | |
| 1671 | for _, test := range genericFlagTests { |
| 1672 | fl := &GenericFlag{Name: test.name, Sources: EnvVars("APP_ZAP")} |
| 1673 | output := fl.String() |
| 1674 | |
| 1675 | expectedSuffix := withEnvHint([]string{"APP_ZAP"}, "") |
| 1676 | if !strings.HasSuffix(output, expectedSuffix) { |
| 1677 | t.Errorf("%s does not end with"+expectedSuffix, output) |
| 1678 | } |
| 1679 | } |
| 1680 | } |
| 1681 | |
| 1682 | func TestGenericFlagApply_SetsAllNames(t *testing.T) { |
| 1683 | fl := GenericFlag{Name: "orbs", Aliases: []string{"O", "obrs"}, Value: &Parser{}} |
nothing calls this directly
no test coverage detected