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

Function TestRecoverFromTextDeduplicates

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

Source from the content-addressed store, hash-verified

252}
253
254func TestRecoverFromTextDeduplicates(t *testing.T) {
255 tools := []official.Tool{
256 {Type: "function", Function: official.ToolFunction{Name: "x", Parameters: json.RawMessage(`{}`)}},
257 }
258 text := `{"name":"x","arguments":{"a":1}} {"name":"x","arguments":{"a":1}}`
259 calls := RecoverFromText(text, tools)
260 if len(calls) != 1 {
261 t.Fatalf("calls = %d, want 1 dedup", len(calls))
262 }
263}
264
265func TestShellCmdToString(t *testing.T) {
266 cases := []struct {

Callers

nothing calls this directly

Calls 1

RecoverFromTextFunction · 0.85

Tested by

no test coverage detected