(t *testing.T)
| 57 | } |
| 58 | |
| 59 | func TestPipelineSingleCommandOutput(t *testing.T) { |
| 60 | t.Parallel() |
| 61 | ctx := context.Background() |
| 62 | |
| 63 | p := pipe.New() |
| 64 | p.Add(pipe.Command("echo", "hello world")) |
| 65 | out, err := p.Output(ctx) |
| 66 | if assert.NoError(t, err) { |
| 67 | assert.EqualValues(t, "hello world\n", out) |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | func TestPipelineSingleCommandWithStdout(t *testing.T) { |
| 72 | t.Parallel() |