(t *testing.T)
| 1431 | } |
| 1432 | |
| 1433 | func TestSliceGivenEmptySliceProducesEmptyPipe(t *testing.T) { |
| 1434 | t.Parallel() |
| 1435 | want := "" |
| 1436 | got, err := script.Slice([]string{}).String() |
| 1437 | if err != nil { |
| 1438 | t.Fatal(err) |
| 1439 | } |
| 1440 | if want != got { |
| 1441 | t.Fatalf("want %q, got %q", want, got) |
| 1442 | } |
| 1443 | } |
| 1444 | |
| 1445 | func TestStdoutReturnsErrorGivenReadErrorOnPipe(t *testing.T) { |
| 1446 | t.Parallel() |