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

Method Output

internal/pipe/pipeline.go:173–178  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

171}
172
173func (p *Pipeline) Output(ctx context.Context) ([]byte, error) {
174 var buf bytes.Buffer
175 p.stdout = nopWriteCloser{&buf}
176 err := p.Run(ctx)
177 return buf.Bytes(), err
178}
179
180// Wait waits for each stage in the pipeline to exit.
181func (p *Pipeline) Wait() error {

Callers 15

NewRepositoryFunction · 0.80
GetConfigMethod · 0.80
ConfigStringDefaultMethod · 0.80
ConfigBoolDefaultMethod · 0.80
ConfigIntDefaultMethod · 0.80
TestNontrivialPipelineFunction · 0.80
TestPipelineDirFunction · 0.80
TestPipelineStderrFunction · 0.80
TestIgnoredSIGPIPEFunction · 0.80
TestFunctionFunction · 0.80

Calls 2

RunMethod · 0.95
BytesMethod · 0.65

Tested by 14

TestNontrivialPipelineFunction · 0.64
TestPipelineDirFunction · 0.64
TestPipelineStderrFunction · 0.64
TestIgnoredSIGPIPEFunction · 0.64
TestFunctionFunction · 0.64
TestPipelineWithFunctionFunction · 0.64
TestPrintlnFunction · 0.64
TestPrintfFunction · 0.64
BenchmarkTenProgramsFunction · 0.64