MCPcopy Index your code
hub / github.com/codehamr/codehamr / TestExecuteUnknownTool

Function TestExecuteUnknownTool

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

Source from the content-addressed store, hash-verified

240 }
241}
242
243func TestExecuteUnknownTool(t *testing.T) {
244 call := chmctx.ToolCall{ID: "x", Name: "nope"}
245 msg := Execute(context.Background(), call)
246 if !strings.Contains(msg.Content, "unknown tool") {
247 t.Fatalf("expected unknown-tool error: %q", msg.Content)
248 }
249}
250
251func TestInlineStatusBash(t *testing.T) {

Callers

nothing calls this directly

Calls 1

ExecuteFunction · 0.85

Tested by

no test coverage detected