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

Function TestBuiltInEngineCatalogIncludesBuiltIns

pkg/workflow/engine_auth_test.go:396–408  ·  view source on GitHub ↗

TestBuiltInEngineCatalogIncludesBuiltIns is a regression test verifying that the built-in engines remain present in the catalog after removing legacy auth bindings.

(t *testing.T)

Source from the content-addressed store, hash-verified

394// TestBuiltInEngineCatalogIncludesBuiltIns is a regression test verifying that the built-in
395// engines remain present in the catalog after removing legacy auth bindings.
396func 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.

Callers

nothing calls this directly

Calls 4

GetMethod · 0.95
NewEngineRegistryFunction · 0.85
NewEngineCatalogFunction · 0.85
RunMethod · 0.45

Tested by

no test coverage detected