MCPcopy Create free account
hub / github.com/aurora-develop/aurora / TestResolveShellTool

Function TestResolveShellTool

internal/toolcall/parser_test.go:284–293  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

282}
283
284func TestResolveShellTool(t *testing.T) {
285 tools := []official.Tool{
286 {Type: "function", Function: official.ToolFunction{Name: "glob"}},
287 {Type: "function", Function: official.ToolFunction{Name: "bash", Parameters: json.RawMessage(`{"properties":{"command":{"type":"string"}}}`)}},
288 }
289 name, param := ResolveShellTool(tools)
290 if name != "bash" || param != "command" {
291 t.Fatalf("got (%q, %q)", name, param)
292 }
293}
294
295func TestStreamToToolCallDeltas(t *testing.T) {
296 calls := []official.ToolCall{

Callers

nothing calls this directly

Calls 1

ResolveShellToolFunction · 0.85

Tested by

no test coverage detected