(t *testing.T)
| 787 | } |
| 788 | |
| 789 | func TestPromptNonInteractiveSelect_InvalidValue(t *testing.T) { |
| 790 | opts := []struct{ label, value string }{ |
| 791 | {"Option A", "a"}, |
| 792 | } |
| 793 | scanner := newScannerFromString("z") |
| 794 | _, err := promptNonInteractiveSelect(scanner, "Pick one", opts) |
| 795 | if err == nil { |
| 796 | t.Fatal("expected error for unknown value, got nil") |
| 797 | } |
| 798 | } |
| 799 | |
| 800 | func TestPromptNonInteractiveSelect_EOF(t *testing.T) { |
| 801 | opts := []struct{ label, value string }{{"Option A", "a"}} |
nothing calls this directly
no test coverage detected