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

Function TestExecuteWriteFileRefusesMissingContent

internal/tools/write_test.go:108–134  ·  view source on GitHub ↗

TestExecuteWriteFileRefusesMissingContent: valid-JSON args with no string "content" ({"path": ...} alone, or "content": null) must not decode to "" and silently truncate an existing file to 0 bytes behind a success-shaped result. An explicit "content": "" still writes (intentional empty file).

(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

ExecuteFunction · 0.85

Tested by

no test coverage detected