(t *testing.T)
| 3206 | } |
| 3207 | |
| 3208 | func TestSetupInitializesBothWriters(t *testing.T) { |
| 3209 | cmd := &Command{} |
| 3210 | |
| 3211 | cmd.setupDefaults([]string{"test"}) |
| 3212 | |
| 3213 | assert.Equal(t, cmd.ErrWriter, os.Stderr, "expected a.ErrWriter to be os.Stderr") |
| 3214 | assert.Equal(t, cmd.Writer, os.Stdout, "expected a.Writer to be os.Stdout") |
| 3215 | } |
| 3216 | |
| 3217 | func TestSetupInitializesOnlyNilWriters(t *testing.T) { |
| 3218 | wr := &bytes.Buffer{} |
nothing calls this directly
no test coverage detected