MCPcopy
hub / github.com/bitfield/script / TestListFiles_ErrorsOnNonexistentPath

Function TestListFiles_ErrorsOnNonexistentPath

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

Source from the content-addressed store, hash-verified

1366}
1367
1368func TestListFiles_ErrorsOnNonexistentPath(t *testing.T) {
1369 t.Parallel()
1370 p := script.ListFiles("nonexistentpath")
1371 if p.Error() == nil {
1372 t.Error("want error status on listing non-existent path, but got nil")
1373 }
1374}
1375
1376func TestListFiles_OutputsSingleFileGivenFilePath(t *testing.T) {
1377 t.Parallel()

Callers

nothing calls this directly

Calls 2

ListFilesFunction · 0.92
ErrorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…