MCPcopy Create free account
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}
32
33func TestReadFileMissingFile(t *testing.T) {
34 s := ReadFile(filepath.Join(t.TempDir(), "nope.txt"), 0, 0)
35 if !strings.HasPrefix(s, "(read error:") {
36 t.Fatalf("expected (read error: ...) string, got %q", s)
37 }
38}
39
40// TestReadFileWindowsOversizeContent: a file past one window comes back as a

Callers

nothing calls this directly

Calls 1

ReadFileFunction · 0.85

Tested by

no test coverage detected