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

Function TestInlineStatusBash

internal/tools/bash_test.go:250–256  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

248 t.Fatalf("expected unknown-tool error: %q", msg.Content)
249 }
250}
251
252func 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

Callers

nothing calls this directly

Calls 1

InlineStatusFunction · 0.85

Tested by

no test coverage detected