TestBuildCustomSafeOutputScriptsJSONEmpty verifies empty output when no scripts
(t *testing.T)
| 124 | |
| 125 | // TestBuildCustomSafeOutputScriptsJSONEmpty verifies empty output when no scripts |
| 126 | func 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 |
| 137 | func TestGenerateCustomScriptToolDefinition(t *testing.T) { |
nothing calls this directly
no test coverage detected