MCPcopy Create free account
hub / github.com/github/gh-aw / TestEngineCatalog_IDs

Function TestEngineCatalog_IDs

pkg/workflow/engine_catalog_test.go:16–32  ·  view source on GitHub ↗

TestEngineCatalog_IDs verifies that IDs() returns all engine IDs in sorted order.

(t *testing.T)

Source from the content-addressed store, hash-verified

14
15// TestEngineCatalog_IDs verifies that IDs() returns all engine IDs in sorted order.
16func 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.
35func TestEngineCatalog_All(t *testing.T) {

Callers

nothing calls this directly

Calls 3

IDsMethod · 0.95
NewEngineRegistryFunction · 0.85
NewEngineCatalogFunction · 0.85

Tested by

no test coverage detected