MCPcopy Create free account
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 t.Fatalf("content missing: %q", msg.Content)
241 }
242}
243
244func TestExecuteUnknownTool(t *testing.T) {
245 call := chmctx.ToolCall{ID: "x", Name: "nope"}
246 msg := Execute(context.Background(), call)
247 if !strings.Contains(msg.Content, "unknown tool") {
248 t.Fatalf("expected unknown-tool error: %q", msg.Content)
249 }
250}
251

Callers

nothing calls this directly

Calls 1

ExecuteFunction · 0.85

Tested by

no test coverage detected