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

Function TestBuildCustomSafeOutputScriptsJSONEmpty

pkg/workflow/safe_scripts_test.go:126–134  ·  view source on GitHub ↗

TestBuildCustomSafeOutputScriptsJSONEmpty verifies empty output when no scripts

(t *testing.T)

Source from the content-addressed store, hash-verified

124
125// TestBuildCustomSafeOutputScriptsJSONEmpty verifies empty output when no scripts
126func TestBuildCustomSafeOutputScriptsJSONEmpty(t *testing.T) {
127 data := &WorkflowData{
128 SafeOutputs: &SafeOutputsConfig{},
129 }
130 assert.Empty(t, buildCustomSafeOutputScriptsJSON(data), "Should return empty for no scripts")
131
132 dataNil := &WorkflowData{SafeOutputs: nil}
133 assert.Empty(t, buildCustomSafeOutputScriptsJSON(dataNil), "Should return empty for nil SafeOutputs")
134}
135
136// TestGenerateCustomScriptToolDefinition verifies MCP tool definition for scripts
137func TestGenerateCustomScriptToolDefinition(t *testing.T) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected