MCPcopy Create free account
hub / github.com/danielmiessler/Fabric / TestScanFilesNonExistentFile

Function TestScanFilesNonExistentFile

cmd/code2context/code_test.go:68–73  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

66}
67
68func TestScanFilesNonExistentFile(t *testing.T) {
69 files := []string{"/nonexistent/file.go"}
70 _, err := ScanFiles(files, "test")
71 assert.Error(t, err)
72 assert.Contains(t, err.Error(), "error accessing file")
73}
74
75func TestScanDirectory(t *testing.T) {
76 tmpDir := t.TempDir()

Callers

nothing calls this directly

Calls 2

ScanFilesFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected