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

Function TestPipelineSingleCommandOutput

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

Source from the content-addressed store, hash-verified

57}
58
59func 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
71func TestPipelineSingleCommandWithStdout(t *testing.T) {
72 t.Parallel()

Callers

nothing calls this directly

Calls 4

NewFunction · 0.92
CommandFunction · 0.92
OutputMethod · 0.80
AddMethod · 0.65

Tested by

no test coverage detected