(t *testing.T)
| 90 | } |
| 91 | |
| 92 | func TestGroupErrorOnlySwallowsOutputOnNoError(t *testing.T) { |
| 93 | t.Parallel() |
| 94 | |
| 95 | var b bytes.Buffer |
| 96 | var o output.Output = output.Group{ |
| 97 | ErrorOnly: true, |
| 98 | } |
| 99 | stdOut, stdErr, cleanup := o.WrapWriter(&b, io.Discard, "", nil) |
| 100 | |
| 101 | _, _ = fmt.Fprintln(stdOut, "std-out") |
| 102 | _, _ = fmt.Fprintln(stdErr, "std-err") |
| 103 | |
| 104 | require.NoError(t, cleanup(nil)) |
| 105 | assert.Empty(t, b.String()) |
| 106 | } |
| 107 | |
| 108 | func TestGroupErrorOnlyShowsOutputOnError(t *testing.T) { |
| 109 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…