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

Function TestWriteFileEmptyPath

internal/tools/write_test.go:42–46  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

40}
41
42func TestWriteFileEmptyPath(t *testing.T) {
43 if WriteFile("", "x") != "(empty path)" {
44 t.Fatal("empty path handling wrong")
45 }
46}
47
48// TestWriteFileMkdirErrorWhenParentIsFile checks the (mkdir error) branch: a
49// MkdirAll failure must surface in the output string (bash convention), never

Callers

nothing calls this directly

Calls 1

WriteFileFunction · 0.85

Tested by

no test coverage detected