(t *testing.T)
| 651 | } |
| 652 | |
| 653 | func TestStringFlagHelpOutput(t *testing.T) { |
| 654 | for _, test := range stringFlagTests { |
| 655 | fl := &StringFlag{Name: test.name, Aliases: test.aliases, Usage: test.usage, Value: test.value} |
| 656 | assert.Equal(t, test.expected, fl.String()) |
| 657 | } |
| 658 | } |
| 659 | |
| 660 | func TestStringFlagDefaultText(t *testing.T) { |
| 661 | fl := &StringFlag{Name: "foo", Aliases: nil, Usage: "amount of `foo` requested", Value: "none", DefaultText: "all of it"} |