MCPcopy
hub / github.com/docker/docker-agent / listFlappyToolSet

Struct listFlappyToolSet

pkg/tools/startable_test.go:55–58  ·  view source on GitHub ↗

listFlappyToolSet implements ToolSet with a scripted sequence of errors returned from Tools(). nil in the sequence means a successful listing.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected