TestBuiltInEngineCatalogIncludesBuiltIns is a regression test verifying that the built-in engines remain present in the catalog after removing legacy auth bindings.
(t *testing.T)
| 394 | // TestBuiltInEngineCatalogIncludesBuiltIns is a regression test verifying that the built-in |
| 395 | // engines remain present in the catalog after removing legacy auth bindings. |
| 396 | func TestBuiltInEngineCatalogIncludesBuiltIns(t *testing.T) { |
| 397 | registry := NewEngineRegistry() |
| 398 | catalog := NewEngineCatalog(registry) |
| 399 | |
| 400 | engineIDs := []string{"antigravity", "claude", "codex", "copilot", "crush", "gemini", "opencode", "pi"} |
| 401 | |
| 402 | for _, engineID := range engineIDs { |
| 403 | t.Run(engineID, func(t *testing.T) { |
| 404 | def := catalog.Get(engineID) |
| 405 | require.NotNilf(t, def, "built-in engine %s should be in catalog", engineID) |
| 406 | }) |
| 407 | } |
| 408 | } |
| 409 | |
| 410 | // TestParseAuthDefinition verifies that parseAuthDefinition correctly maps YAML map keys |
| 411 | // to AuthDefinition fields. |
nothing calls this directly
no test coverage detected