(t *testing.T)
| 211 | } |
| 212 | |
| 213 | func 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 | |
| 221 | func TestRecoverFromTextExtractsToolCall(t *testing.T) { |
| 222 | tools := []official.Tool{ |
nothing calls this directly
no test coverage detected