(t *testing.T)
| 1374 | } |
| 1375 | |
| 1376 | func TestListFiles_OutputsSingleFileGivenFilePath(t *testing.T) { |
| 1377 | t.Parallel() |
| 1378 | got, err := script.ListFiles("testdata/multiple_files/1.txt").String() |
| 1379 | if err != nil { |
| 1380 | t.Fatal(err) |
| 1381 | } |
| 1382 | want := "testdata/multiple_files/1.txt" |
| 1383 | if !cmp.Equal(want, got) { |
| 1384 | t.Error(cmp.Diff(want, got)) |
| 1385 | } |
| 1386 | } |
| 1387 | |
| 1388 | func TestListFiles_OutputsAllFilesMatchingSpecifiedGlobExpression(t *testing.T) { |
| 1389 | t.Parallel() |