(t *testing.T)
| 868 | } |
| 869 | |
| 870 | func TestPromptNonInteractiveMultiSelect_OutOfRange(t *testing.T) { |
| 871 | opts := []struct{ label, value string }{{"Option A", "a"}} |
| 872 | scanner := newScannerFromString("99") |
| 873 | _, err := promptNonInteractiveMultiSelect(scanner, "Pick tools", opts) |
| 874 | if err == nil { |
| 875 | t.Fatal("expected error for out-of-range index, got nil") |
| 876 | } |
| 877 | } |
| 878 | |
| 879 | func TestPromptNonInteractiveMultiSelect_UnknownValue(t *testing.T) { |
| 880 | opts := []struct{ label, value string }{{"Option A", "a"}} |
nothing calls this directly
no test coverage detected