(t *testing.T)
| 905 | } |
| 906 | |
| 907 | func TestPromptForWorkflowNameFrom_Empty(t *testing.T) { |
| 908 | b := &InteractiveWorkflowBuilder{} |
| 909 | // Empty reader → EOF without any text |
| 910 | err := b.promptForWorkflowNameFrom(strings.NewReader("")) |
| 911 | if err == nil { |
| 912 | t.Fatal("expected error on empty input, got nil") |
| 913 | } |
| 914 | } |
| 915 | |
| 916 | func TestPromptForConfigurationFrom_Basic(t *testing.T) { |
| 917 | // Simulate non-TTY input: trigger=1, engine=1, tools=1,2, safe-outputs="" (blank), |
nothing calls this directly
no test coverage detected