MCPcopy Create free account
hub / github.com/compozy/agh / expectedCLIToolListPayload

Function expectedCLIToolListPayload

internal/cli/tool_integration_test.go:182–194  ·  view source on GitHub ↗
(
	t *testing.T,
	registry *cliToolIntegrationRegistry,
	scope toolspkg.Scope,
)

Source from the content-addressed store, hash-verified

180}
181
182func expectedCLIToolListPayload(
183 t *testing.T,
184 registry *cliToolIntegrationRegistry,
185 scope toolspkg.Scope,
186) ToolsResponseRecord {
187 t.Helper()
188
189 views, err := registry.List(context.Background(), scope)
190 if err != nil {
191 t.Fatalf("registry.List() error = %v", err)
192 }
193 return ToolsResponseRecord{Tools: core.ToolPayloadsFromViews(views)}
194}
195
196func expectedCLIToolSearchPayload(
197 t *testing.T,

Calls 2

ToolPayloadsFromViewsFunction · 0.92
ListMethod · 0.65

Tested by

no test coverage detected