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

Function TestHasAnySafeOutputEnabledWithScripts

pkg/workflow/safe_scripts_test.go:370–379  ·  view source on GitHub ↗

TestHasAnySafeOutputEnabledWithScripts verifies Scripts are detected as enabled

(t *testing.T)

Source from the content-addressed store, hash-verified

368
369// TestHasAnySafeOutputEnabledWithScripts verifies Scripts are detected as enabled
370func TestHasAnySafeOutputEnabledWithScripts(t *testing.T) {
371 config := &SafeOutputsConfig{
372 Scripts: map[string]*SafeScriptConfig{
373 "my-script": {
374 Script: "return async (m) => ({ success: true });",
375 },
376 },
377 }
378 assert.True(t, hasAnySafeOutputEnabled(config), "Should detect scripts as enabled safe outputs")
379}
380
381// TestHasNonBuiltinSafeOutputsEnabledWithScripts verifies Scripts count as non-builtin
382func TestHasNonBuiltinSafeOutputsEnabledWithScripts(t *testing.T) {

Callers

nothing calls this directly

Calls 1

hasAnySafeOutputEnabledFunction · 0.85

Tested by

no test coverage detected