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

Function expectedCLIToolSearchPayload

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

Source from the content-addressed store, hash-verified

194}
195
196func expectedCLIToolSearchPayload(
197 t *testing.T,
198 registry *cliToolIntegrationRegistry,
199 scope toolspkg.Scope,
200 query toolspkg.SearchQuery,
201) ToolsResponseRecord {
202 t.Helper()
203
204 views, err := registry.Search(context.Background(), scope, query)
205 if err != nil {
206 t.Fatalf("registry.Search() error = %v", err)
207 }
208 return ToolsResponseRecord{Tools: core.ToolPayloadsFromViews(views)}
209}
210
211func expectedCLIToolInvokePayload(
212 t *testing.T,

Calls 2

ToolPayloadsFromViewsFunction · 0.92
SearchMethod · 0.65

Tested by

no test coverage detected