TestHasAnySafeOutputEnabledWithScripts verifies Scripts are detected as enabled
(t *testing.T)
| 368 | |
| 369 | // TestHasAnySafeOutputEnabledWithScripts verifies Scripts are detected as enabled |
| 370 | func 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 |
| 382 | func TestHasNonBuiltinSafeOutputsEnabledWithScripts(t *testing.T) { |
nothing calls this directly
no test coverage detected