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

Function TestIntFlagHelpOutput

flag_test.go:879–884  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

877}
878
879func TestIntFlagHelpOutput(t *testing.T) {
880 for _, test := range intFlagTests {
881 fl := &Int64Flag{Name: test.name, Value: 9}
882 assert.Equal(t, test.expected, fl.String())
883 }
884}
885
886func TestIntFlagWithEnvVarHelpOutput(t *testing.T) {
887 t.Setenv("APP_BAR", "2")

Callers

nothing calls this directly

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected