TestEngineCatalog_IDs verifies that IDs() returns all engine IDs in sorted order.
(t *testing.T)
| 14 | |
| 15 | // TestEngineCatalog_IDs verifies that IDs() returns all engine IDs in sorted order. |
| 16 | func TestEngineCatalog_IDs(t *testing.T) { |
| 17 | registry := NewEngineRegistry() |
| 18 | catalog := NewEngineCatalog(registry) |
| 19 | |
| 20 | ids := catalog.IDs() |
| 21 | require.NotEmpty(t, ids, "IDs() should return a non-empty list") |
| 22 | |
| 23 | // Verify all built-in engines are present |
| 24 | expectedIDs := []string{"antigravity", "claude", "codex", "copilot", "crush", "gemini", "opencode", "pi"} |
| 25 | assert.Equal(t, expectedIDs, ids, "IDs() should return all built-in engines in sorted order") |
| 26 | |
| 27 | // Verify the list is sorted |
| 28 | sorted := make([]string, len(ids)) |
| 29 | copy(sorted, ids) |
| 30 | sort.Strings(sorted) |
| 31 | assert.Equal(t, sorted, ids, "IDs() should return IDs in sorted order") |
| 32 | } |
| 33 | |
| 34 | // TestEngineCatalog_All verifies that All() returns all definitions in sorted ID order. |
| 35 | func TestEngineCatalog_All(t *testing.T) { |
nothing calls this directly
no test coverage detected