(t *testing.T)
| 593 | } |
| 594 | |
| 595 | func TestPrintf(t *testing.T) { |
| 596 | t.Parallel() |
| 597 | ctx := context.Background() |
| 598 | |
| 599 | p := pipe.New() |
| 600 | p.Add(pipe.Printf("Strangely recursive: %T", p)) |
| 601 | out, err := p.Output(ctx) |
| 602 | if assert.NoError(t, err) { |
| 603 | assert.EqualValues(t, "Strangely recursive: *pipe.Pipeline", out) |
| 604 | } |
| 605 | } |
| 606 | |
| 607 | func TestErrors(t *testing.T) { |
| 608 | t.Parallel() |