(t *testing.T)
| 581 | } |
| 582 | |
| 583 | func TestPrintln(t *testing.T) { |
| 584 | t.Parallel() |
| 585 | ctx := context.Background() |
| 586 | |
| 587 | p := pipe.New() |
| 588 | p.Add(pipe.Println("Look Ma, no hands!")) |
| 589 | out, err := p.Output(ctx) |
| 590 | if assert.NoError(t, err) { |
| 591 | assert.EqualValues(t, "Look Ma, no hands!\n", out) |
| 592 | } |
| 593 | } |
| 594 | |
| 595 | func TestPrintf(t *testing.T) { |
| 596 | t.Parallel() |