( t *testing.T, registry *cliToolIntegrationRegistry, scope toolspkg.Scope, )
| 180 | } |
| 181 | |
| 182 | func 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 | |
| 196 | func expectedCLIToolSearchPayload( |
| 197 | t *testing.T, |
no test coverage detected