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

Function TestBuildCustomScriptFilesStepEmpty

pkg/workflow/safe_scripts_test.go:284–292  ·  view source on GitHub ↗

TestBuildCustomScriptFilesStepEmpty verifies nil return for empty scripts

(t *testing.T)

Source from the content-addressed store, hash-verified

282
283// TestBuildCustomScriptFilesStepEmpty verifies nil return for empty scripts
284func TestBuildCustomScriptFilesStepEmpty(t *testing.T) {
285 steps, err := buildCustomScriptFilesStep(nil)
286 require.NoError(t, err, "Should not return error for nil scripts")
287 assert.Nil(t, steps, "Should return nil for empty scripts")
288
289 stepsEmpty, err := buildCustomScriptFilesStep(map[string]*SafeScriptConfig{})
290 require.NoError(t, err, "Should not return error for empty map")
291 assert.Nil(t, stepsEmpty, "Should return nil for empty map")
292}
293
294// TestHandlerManagerStepIncludesScriptsEnvVar verifies GH_AW_SAFE_OUTPUT_SCRIPTS in handler manager
295func TestHandlerManagerStepIncludesScriptsEnvVar(t *testing.T) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected