(t *testing.T)
| 798 | } |
| 799 | |
| 800 | func TestPromptNonInteractiveSelect_EOF(t *testing.T) { |
| 801 | opts := []struct{ label, value string }{{"Option A", "a"}} |
| 802 | scanner := newScannerFromString("") // empty = EOF immediately |
| 803 | _, err := promptNonInteractiveSelect(scanner, "Pick one", opts) |
| 804 | if err == nil { |
| 805 | t.Fatal("expected error on EOF, got nil") |
| 806 | } |
| 807 | } |
| 808 | |
| 809 | func TestPromptNonInteractiveMultiSelect_ByNumber(t *testing.T) { |
| 810 | opts := []struct{ label, value string }{ |
nothing calls this directly
no test coverage detected