(t *testing.T)
| 166 | } |
| 167 | |
| 168 | func 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, |
nothing calls this directly
no test coverage detected