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

Function TestPipelineExit

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

Source from the content-addressed store, hash-verified

209}
210
211func TestPipelineExit(t *testing.T) {
212 t.Parallel()
213 ctx := context.Background()
214
215 p := pipe.New()
216 p.Add(
217 pipe.Command("false"),
218 pipe.Command("true"),
219 )
220 assert.EqualError(t, p.Run(ctx), "false: exit status 1")
221}
222
223func TestPipelineStderr(t *testing.T) {
224 t.Parallel()

Callers

nothing calls this directly

Calls 4

NewFunction · 0.92
CommandFunction · 0.92
RunMethod · 0.80
AddMethod · 0.65

Tested by

no test coverage detected