MCPcopy Index your code
hub / github.com/docker/docker-agent / flappyToolSet

Struct flappyToolSet

pkg/tools/startable_test.go:27–31  ·  view source on GitHub ↗

flappyToolSet implements ToolSet + Startable with a scripted sequence of errors. Each call to Start() consumes the next error from errs; nil means success.

Source from the content-addressed store, hash-verified

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.
27type flappyToolSet struct {
28 errs []error
29 callIdx int
30 startups int // number of successful Start() calls
31}
32
33func (f *flappyToolSet) Tools(context.Context) ([]tools.Tool, error) {
34 return []tools.Tool{{Name: "flappy_tool"}}, nil

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected