MCPcopy Index your code
hub / github.com/codehamr/codehamr / TestReadFileMissingFile

Function TestReadFileMissingFile

internal/tools/read_test.go:32–37  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

30}
31
32func TestReadFileMissingFile(t *testing.T) {
33 s := ReadFile(filepath.Join(t.TempDir(), "nope.txt"))
34 if !strings.HasPrefix(s, "(read error:") {
35 t.Fatalf("expected (read error: ...) string, got %q", s)
36 }
37}
38
39// TestReadFileTruncatesOversizeContent: ReadFile obeys the same Truncate
40// head+tail cap as every other tool. Oversize content must carry the marker so

Callers

nothing calls this directly

Calls 1

ReadFileFunction · 0.85

Tested by

no test coverage detected