AddWithIgnoredError appends one or more stages that are ignoring the passed in error to the pipeline.
(em ErrorMatcher, stages ...Stage)
| 109 | // AddWithIgnoredError appends one or more stages that are ignoring |
| 110 | // the passed in error to the pipeline. |
| 111 | func (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 |
nothing calls this directly
no test coverage detected