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

Function TestPromptForWorkflowNameFrom_Valid

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

Source from the content-addressed store, hash-verified

886}
887
888func TestPromptForWorkflowNameFrom_Valid(t *testing.T) {
889 b := &InteractiveWorkflowBuilder{}
890 err := b.promptForWorkflowNameFrom(strings.NewReader("my-workflow\n"))
891 if err != nil {
892 t.Fatalf("unexpected error: %v", err)
893 }
894 if b.WorkflowName != "my-workflow" {
895 t.Errorf("WorkflowName = %q, want %q", b.WorkflowName, "my-workflow")
896 }
897}
898
899func TestPromptForWorkflowNameFrom_Invalid(t *testing.T) {
900 b := &InteractiveWorkflowBuilder{}

Callers

nothing calls this directly

Calls 2

ErrorfMethod · 0.45

Tested by

no test coverage detected