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

Function TestPromptForWorkflowNameFrom_Empty

pkg/cli/interactive_test.go:907–914  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

905}
906
907func 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
916func TestPromptForConfigurationFrom_Basic(t *testing.T) {
917 // Simulate non-TTY input: trigger=1, engine=1, tools=1,2, safe-outputs="" (blank),

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected