MCPcopy Create free account
hub / github.com/codehamr/codehamr / TestReadFileEmptyPath

Function TestReadFileEmptyPath

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

Source from the content-addressed store, hash-verified

24}
25
26func TestReadFileEmptyPath(t *testing.T) {
27 if got := ReadFile(""); got != "(empty path)" {
28 t.Fatalf("empty path handling wrong: %q", got)
29 }
30}
31
32func TestReadFileMissingFile(t *testing.T) {
33 s := ReadFile(filepath.Join(t.TempDir(), "nope.txt"))

Callers

nothing calls this directly

Calls 1

ReadFileFunction · 0.85

Tested by

no test coverage detected