MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_partial_json_complete

Function test_partial_json_complete

core/src/llm/structured_tests.rs:228–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

226
227#[test]
228fn test_partial_json_complete() {
229 let input = r#"{"name": "Alice", "age": 30}"#;
230 let result = try_parse_partial_json(input).unwrap();
231 assert_eq!(result["name"], "Alice");
232}
233
234#[test]
235fn test_partial_json_unclosed_object() {

Callers

nothing calls this directly

Calls 1

try_parse_partial_jsonFunction · 0.85

Tested by

no test coverage detected