(t *testing.T)
| 248 | t.Fatalf("expected unknown-tool error: %q", msg.Content) |
| 249 | } |
| 250 | } |
| 251 | |
| 252 | func TestInlineStatusBash(t *testing.T) { |
| 253 | s := InlineStatus(chmctx.ToolCall{Name: "bash", |
| 254 | Arguments: map[string]any{"cmd": "ls -la\nrm /tmp/x"}}) |
| 255 | if !strings.HasPrefix(s, "▶ bash: ls -la") || strings.Contains(s, "\n") { |
| 256 | t.Fatalf("bad inline status: %q", s) |
| 257 | } |
| 258 | } |
| 259 |
nothing calls this directly
no test coverage detected