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

Function TestPrintln

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

Source from the content-addressed store, hash-verified

581}
582
583func 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
595func TestPrintf(t *testing.T) {
596 t.Parallel()

Callers

nothing calls this directly

Calls 4

NewFunction · 0.92
PrintlnFunction · 0.92
OutputMethod · 0.80
AddMethod · 0.65

Tested by

no test coverage detected