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

Function TestPiEngine_GetRequiredSecretNames_NoPrefix

pkg/workflow/pi_engine_test.go:75–83  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

73}
74
75func TestPiEngine_GetRequiredSecretNames_NoPrefix(t *testing.T) {
76 engine := NewPiEngine()
77 workflowData := &WorkflowData{
78 Name: "test-workflow",
79 EngineConfig: &EngineConfig{ID: "pi", Model: "claude-sonnet-4-20250514"},
80 }
81 secrets := engine.GetRequiredSecretNames(workflowData)
82 assert.Contains(t, secrets, "COPILOT_GITHUB_TOKEN", "bare model (no prefix) should default to COPILOT_GITHUB_TOKEN")
83}
84
85func TestPiEngine_GetLogParserScriptId(t *testing.T) {
86 engine := NewPiEngine()

Callers

nothing calls this directly

Calls 2

NewPiEngineFunction · 0.85

Tested by

no test coverage detected