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

Function TestGetEngineArtifactPaths_GeminiEngine

pkg/workflow/engine_output_test.go:48–66  ·  view source on GitHub ↗

TestGetEngineArtifactPaths_GeminiEngine verifies Gemini wildcard paths are preserved.

(t *testing.T)

Source from the content-addressed store, hash-verified

46
47// TestGetEngineArtifactPaths_GeminiEngine verifies Gemini wildcard paths are preserved.
48func TestGetEngineArtifactPaths_GeminiEngine(t *testing.T) {
49 geminiEngine := NewGeminiEngine()
50 paths := getEngineArtifactPaths(geminiEngine)
51
52 require.NotNil(t, paths, "Gemini engine should have artifact paths")
53
54 // Gemini declares the client-error wildcard log
55 wildcardFound := false
56 for _, p := range paths {
57 if strings.Contains(p, "gemini-client-error") {
58 wildcardFound = true
59 break
60 }
61 }
62 assert.True(t, wildcardFound, "Gemini artifact paths should include gemini-client-error wildcard")
63
64 // Redacted URLs log should be present
65 assert.Contains(t, paths, RedactedURLsLogPath, "RedactedURLsLogPath should be present in Gemini artifact paths")
66}
67
68// TestGenerateEngineOutputCleanup_NoOutputFiles verifies that engines with no declared
69// output files produce no cleanup YAML.

Callers

nothing calls this directly

Calls 2

NewGeminiEngineFunction · 0.85
getEngineArtifactPathsFunction · 0.85

Tested by

no test coverage detected