MCPcopy Index your code
hub / github.com/bitfield/script / TestListFiles_OutputsSingleFileGivenFilePath

Function TestListFiles_OutputsSingleFileGivenFilePath

script_test.go:1376–1386  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1374}
1375
1376func 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
1388func TestListFiles_OutputsAllFilesMatchingSpecifiedGlobExpression(t *testing.T) {
1389 t.Parallel()

Callers

nothing calls this directly

Calls 3

ListFilesFunction · 0.92
StringMethod · 0.80
ErrorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…