(t *testing.T)
| 1443 | } |
| 1444 | |
| 1445 | func TestStdoutReturnsErrorGivenReadErrorOnPipe(t *testing.T) { |
| 1446 | t.Parallel() |
| 1447 | brokenReader := iotest.ErrReader(errors.New("oh no")) |
| 1448 | _, err := script.NewPipe().WithStdout(io.Discard). |
| 1449 | WithReader(brokenReader).Stdout() |
| 1450 | if err == nil { |
| 1451 | t.Fatal(nil) |
| 1452 | } |
| 1453 | } |
| 1454 | |
| 1455 | func TestStdoutSendsPipeContentsToConfiguredStandardOutput(t *testing.T) { |
| 1456 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…