@@ -6,8 +6,8 @@ import (
6 "github.com/stretchr/testify/require"
6 "github.com/stretchr/testify/require"
9−func TestPasteStringToPaths(t *testing.T) {
9+func TestParsePastedFiles(t *testing.T) {
10− t.Run("Windows", func(t *testing.T) {
10+ t.Run("WindowsTerminal", func(t *testing.T) {
11 tests := []struct {
11 tests := []struct {
12 name string
12 name string
13 input string
13 input string
@@ -24,7 +24,7 @@ func TestPasteStringToPaths(t *testing.T) {
24 expected: []string{`C:\path\my-screenshot-one.png`, `C:\path\my-screenshot-two.png`, `C:\path\my-screenshot-three.png`},
24 expected: []string{`C:\path\my-screenshot-one.png`, `C:\path\my-screenshot-two.png`, `C:\path\my-screenshot-three.png`},
27− name: "sigle with spaces",
27+ name: "single with spaces",
28 input: `"C:\path\my screenshot one.png"`,
28 input: `"C:\path\my screenshot one.png"`,
29 expected: []string{`C:\path\my screenshot one.png`},
29 expected: []string{`C:\path\my screenshot one.png`},
@@ -46,7 +46,7 @@ func TestPasteStringToPaths(t *testing.T) {
47 name: "text outside quotes",
47 name: "text outside quotes",
48 input: `"C:\path\file.png" some random text "C:\path\file2.png"`,
48 input: `"C:\path\file.png" some random text "C:\path\file2.png"`,
49− expected: []string{`C:\path\file.png`, `C:\path\file2.png`},
49+ expected: nil,
52 name: "multiple spaces between paths",
52 name: "multiple spaces between paths",
@@ -66,7 +66,7 @@ func TestPasteStringToPaths(t *testing.T) {
67 for _, tt := range tests {
67 for _, tt := range tests {
68 t.Run(tt.name, func(t *testing.T) {
68 t.Run(tt.name, func(t *testing.T) {
69− result := windowsPasteStringToPaths(tt.input)
69+ result := windowsTerminalParsePastedFiles(tt.input)
70 require.Equal(t, tt.expected, result)
70 require.Equal(t, tt.expected, result)
@@ -141,7 +141,7 @@ func TestPasteStringToPaths(t *testing.T) {
142 for _, tt := range tests {
142 for _, tt := range tests {
143 t.Run(tt.name, func(t *testing.T) {
143 t.Run(tt.name, func(t *testing.T) {
144− result := unixPasteStringToPaths(tt.input)
144+ result := unixParsePastedFiles(tt.input)
145 require.Equal(t, tt.expected, result)
145 require.Equal(t, tt.expected, result)