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

Function TestWriteFileMkdirErrorWhenParentIsFile

internal/tools/write_test.go:52–63  ·  view source on GitHub ↗

TestWriteFileMkdirErrorWhenParentIsFile checks the (mkdir error) branch: a MkdirAll failure must surface in the output string (bash convention), never as a Go error. A file in the path triggers it; a read-only dir would not, since tests run as root and root bypasses directory permission bits.

(t *testing.T)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

WriteFileFunction · 0.85

Tested by

no test coverage detected