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

Function TestFindFiles_InNonexistentPathReturnsError

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

Source from the content-addressed store, hash-verified

1322}
1323
1324func TestFindFiles_InNonexistentPathReturnsError(t *testing.T) {
1325 t.Parallel()
1326 p := script.FindFiles("nonexistent_path")
1327 if p.Error() == nil {
1328 t.Fatal("want error for nonexistent path")
1329 }
1330}
1331
1332func TestIfExists_ProducesErrorPlusNoOutputForNonexistentFile(t *testing.T) {
1333 t.Parallel()

Callers

nothing calls this directly

Calls 2

FindFilesFunction · 0.92
ErrorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…