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

Function TestInlineStatusWriteFile

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

Source from the content-addressed store, hash-verified

166}
167
168func TestInlineStatusWriteFile(t *testing.T) {
169 s := InlineStatus(chmctx.ToolCall{
170 Name: "write_file",
171 Arguments: map[string]any{"path": "/tmp/foo.txt", "content": "x"},
172 })
173 if !strings.HasPrefix(s, "▶ write_file: /tmp/foo.txt") {
174 t.Fatalf("bad inline status: %q", s)
175 }
176}
177
178// TestWriteFileAppendCoercesStringFlag: a weak backend emitting `"append":
179// "true"` must still APPEND. A failed bool assertion would silently overwrite,

Callers

nothing calls this directly

Calls 1

InlineStatusFunction · 0.85

Tested by

no test coverage detected