MCPcopy
hub / github.com/github/git-sizer / TestPrintf

Function TestPrintf

internal/pipe/pipeline_test.go:595–605  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

593}
594
595func 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
607func TestErrors(t *testing.T) {
608 t.Parallel()

Callers

nothing calls this directly

Calls 4

NewFunction · 0.92
PrintfFunction · 0.92
OutputMethod · 0.80
AddMethod · 0.65

Tested by

no test coverage detected