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

Function TestFileErrorsOnNonexistentFile

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

Source from the content-addressed store, hash-verified

1278}
1279
1280func TestFileErrorsOnNonexistentFile(t *testing.T) {
1281 t.Parallel()
1282 p := script.File("doesntexist")
1283 if p.Error() == nil {
1284 t.Error("want error for non-existent file")
1285 }
1286}
1287
1288func TestFindFiles_ReturnsListOfFiles(t *testing.T) {
1289 t.Parallel()

Callers

nothing calls this directly

Calls 2

FileFunction · 0.92
ErrorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…