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

Function TestScanFilesNonExistentFile

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

Source from the content-addressed store, hash-verified

74}
75
76func TestScanFilesNonExistentFile(t *testing.T) {
77 files := []string{"/nonexistent/file.go"}
78 _, err := ScanFiles(files, "test")
79 assert.Error(t, err)
80 assert.Contains(t, err.Error(), "error accessing file")
81}
82
83func TestScanDirectory(t *testing.T) {
84 tmpDir := t.TempDir()

Callers

nothing calls this directly

Calls 2

ScanFilesFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected