(t *testing.T)
| 2135 | } |
| 2136 | |
| 2137 | func TestSetOut(t *testing.T) { |
| 2138 | c := &Command{} |
| 2139 | c.SetOut(nil) |
| 2140 | if out := c.OutOrStdout(); out != os.Stdout { |
| 2141 | t.Errorf("Expected setting output to nil to revert back to stdout") |
| 2142 | } |
| 2143 | } |
| 2144 | |
| 2145 | func TestSetErr(t *testing.T) { |
| 2146 | c := &Command{} |
nothing calls this directly
no test coverage detected