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

Function TestCommand_DefaultStdout

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

Source from the content-addressed store, hash-verified

1521}
1522
1523func TestCommand_DefaultStdout(t *testing.T) {
1524 cmd := &Command{}
1525 cmd.setupDefaults([]string{"test"})
1526
1527 assert.Equal(t, cmd.Writer, os.Stdout, "Default output writer not set.")
1528}
1529
1530func TestCommand_SetStdin(t *testing.T) {
1531 buf := make([]byte, 12)

Callers

nothing calls this directly

Calls 1

setupDefaultsMethod · 0.95

Tested by

no test coverage detected