( t *testing.T, registry *cliToolIntegrationRegistry, scope toolspkg.Scope, query toolspkg.SearchQuery, )
| 194 | } |
| 195 | |
| 196 | func 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 | |
| 211 | func expectedCLIToolInvokePayload( |
| 212 | t *testing.T, |
no test coverage detected