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

Method AddWithIgnoredError

internal/pipe/pipeline.go:111–119  ·  view source on GitHub ↗

AddWithIgnoredError appends one or more stages that are ignoring the passed in error to the pipeline.

(em ErrorMatcher, stages ...Stage)

Source from the content-addressed store, hash-verified

109// AddWithIgnoredError appends one or more stages that are ignoring
110// the passed in error to the pipeline.
111func (p *Pipeline) AddWithIgnoredError(em ErrorMatcher, stages ...Stage) {
112 if p.hasStarted() {
113 panic("attempt to modify a pipeline that has already started")
114 }
115
116 for _, stage := range stages {
117 p.stages = append(p.stages, IgnoreError(stage, em))
118 }
119}
120
121// Start starts the commands in the pipeline. If `Start()` exits
122// without an error, `Wait()` must also be called, to allow all

Callers

nothing calls this directly

Calls 2

hasStartedMethod · 0.95
IgnoreErrorFunction · 0.85

Tested by

no test coverage detected