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

Function TestRobustJSONTruncatesUnbalanced

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

Source from the content-addressed store, hash-verified

211}
212
213func TestRobustJSONTruncatesUnbalanced(t *testing.T) {
214 in := `{"a": 1, "b": "unterminated` // 没有 } 和 "
215 v, ok := robustJSON(in)
216 if ok {
217 t.Fatalf("robustJSON should fail on truly broken input, got %#v", v)
218 }
219}
220
221func TestRecoverFromTextExtractsToolCall(t *testing.T) {
222 tools := []official.Tool{

Callers

nothing calls this directly

Calls 1

robustJSONFunction · 0.85

Tested by

no test coverage detected