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

Function toolByName

pkg/tools/builtin/openapi/openapi_test.go:105–114  ·  view source on GitHub ↗
(t *testing.T, toolsList []tools.Tool, name string)

Source from the content-addressed store, hash-verified

103}
104
105func toolByName(t *testing.T, toolsList []tools.Tool, name string) tools.Tool {
106 t.Helper()
107 for _, tl := range toolsList {
108 if tl.Name == name {
109 return tl
110 }
111 }
112 t.Fatalf("tool %q not found", name)
113 return tools.Tool{}
114}
115
116func callTool(t *testing.T, tool tools.Tool, args string) *tools.ToolCallResult {
117 t.Helper()

Callers 2

TestOpenAPITool_ToolsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected