MCPcopy
hub / github.com/urfave/cli / TestStringFlagHelpOutput

Function TestStringFlagHelpOutput

flag_test.go:653–658  ·  flag_test.go::TestStringFlagHelpOutput
(t *testing.T)

Source from the content-addressed store, hash-verified

651}
652
653func 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
660func TestStringFlagDefaultText(t *testing.T) {
661 fl := &StringFlag{Name: "foo", Aliases: nil, Usage: "amount of `foo` requested", Value: "none", DefaultText: "all of it"}

Callers

nothing calls this directly

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected