MCPcopy Index your code
hub / github.com/AI45Lab/Code / test_partial_json_nested_unclosed

Function test_partial_json_nested_unclosed

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

Source from the content-addressed store, hash-verified

282
283#[test]
284fn test_partial_json_nested_unclosed() {
285 let input = r#"{"user": {"name": "Bob", "tags": ["admin""#;
286 let result = try_parse_partial_json(input).unwrap();
287 assert_eq!(result["user"]["name"], "Bob");
288 assert_eq!(result["user"]["tags"][0], "admin");
289}
290
291// ========================================================================
292// Schema validation tests

Callers

nothing calls this directly

Calls 1

try_parse_partial_jsonFunction · 0.85

Tested by

no test coverage detected