flappyToolSet implements ToolSet + Startable with a scripted sequence of errors. Each call to Start() consumes the next error from errs; nil means success.
| 25 | // flappyToolSet implements ToolSet + Startable with a scripted sequence of errors. |
| 26 | // Each call to Start() consumes the next error from errs; nil means success. |
| 27 | type flappyToolSet struct { |
| 28 | errs []error |
| 29 | callIdx int |
| 30 | startups int // number of successful Start() calls |
| 31 | } |
| 32 | |
| 33 | func (f *flappyToolSet) Tools(context.Context) ([]tools.Tool, error) { |
| 34 | return []tools.Tool{{Name: "flappy_tool"}}, nil |
nothing calls this directly
no outgoing calls
no test coverage detected