(t *testing.T)
| 1692 | } |
| 1693 | |
| 1694 | func TestWaitReadsPipeSourceToCompletion(t *testing.T) { |
| 1695 | t.Parallel() |
| 1696 | source := bytes.NewBufferString("hello") |
| 1697 | script.NewPipe().WithReader(source).FilterLine(strings.ToUpper).Wait() |
| 1698 | if source.Len() > 0 { |
| 1699 | t.Errorf("incomplete read: %d bytes of input remaining: %q", source.Len(), source.String()) |
| 1700 | } |
| 1701 | } |
| 1702 | |
| 1703 | func TestWriteFile_WritesInputToFileCreatingItIfNecessary(t *testing.T) { |
| 1704 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…