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

Function TestClaudeEngineGetHarnessScriptName

pkg/workflow/claude_engine_test.go:749–755  ·  view source on GitHub ↗

TestClaudeEngineGetHarnessScriptName verifies that the Claude engine returns the built-in harness script name, which wraps Claude Code CLI execution with retry logic for transient Anthropic API errors (overload, rate limit).

(t *testing.T)

Source from the content-addressed store, hash-verified

747// harness script name, which wraps Claude Code CLI execution with retry logic for transient
748// Anthropic API errors (overload, rate limit).
749func TestClaudeEngineGetHarnessScriptName(t *testing.T) {
750 engine := NewClaudeEngine()
751 harnessName := engine.GetHarnessScriptName()
752 if harnessName != "claude_harness.cjs" {
753 t.Errorf("Expected 'claude_harness.cjs', got %q", harnessName)
754 }
755}
756
757// TestClaudeEngineHarnessUsesPromptFile verifies that when the built-in harness is used,
758// the execution step passes --prompt-file instead of inline shell expansion.

Callers

nothing calls this directly

Calls 3

GetHarnessScriptNameMethod · 0.95
NewClaudeEngineFunction · 0.85
ErrorfMethod · 0.45

Tested by

no test coverage detected