(t *testing.T)
| 841 | } |
| 842 | |
| 843 | func TestPromptNonInteractiveMultiSelect_Empty(t *testing.T) { |
| 844 | opts := []struct{ label, value string }{{"Option A", "a"}} |
| 845 | scanner := newScannerFromString("") |
| 846 | got, err := promptNonInteractiveMultiSelect(scanner, "Pick tools", opts) |
| 847 | if err != nil { |
| 848 | t.Fatalf("unexpected error on blank input: %v", err) |
| 849 | } |
| 850 | if len(got) != 0 { |
| 851 | t.Errorf("expected empty slice, got %v", got) |
| 852 | } |
| 853 | } |
| 854 | |
| 855 | func TestPromptNonInteractiveMultiSelect_Deduplication(t *testing.T) { |
| 856 | opts := []struct{ label, value string }{ |
nothing calls this directly
no test coverage detected