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

Function TestCommand_DefaultStdin

command_test.go:1516–1521  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1514}
1515
1516func TestCommand_DefaultStdin(t *testing.T) {
1517 cmd := &Command{}
1518 cmd.setupDefaults([]string{"test"})
1519
1520 assert.Equal(t, cmd.Reader, os.Stdin, "Default input reader not set.")
1521}
1522
1523func TestCommand_DefaultStdout(t *testing.T) {
1524 cmd := &Command{}

Callers

nothing calls this directly

Calls 1

setupDefaultsMethod · 0.95

Tested by

no test coverage detected