listFlappyToolSet implements ToolSet with a scripted sequence of errors returned from Tools(). nil in the sequence means a successful listing.
| 53 | // listFlappyToolSet implements ToolSet with a scripted sequence of errors |
| 54 | // returned from Tools(). nil in the sequence means a successful listing. |
| 55 | type listFlappyToolSet struct { |
| 56 | errs []error |
| 57 | callIdx int |
| 58 | } |
| 59 | |
| 60 | func (f *listFlappyToolSet) Tools(context.Context) ([]tools.Tool, error) { |
| 61 | if f.callIdx < len(f.errs) { |
nothing calls this directly
no outgoing calls
no test coverage detected