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

Function test_partial_json_unclosed_object

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

Source from the content-addressed store, hash-verified

233
234#[test]
235fn test_partial_json_unclosed_object() {
236 let input = r#"{"name": "Alice", "age": 30"#;
237 let result = try_parse_partial_json(input).unwrap();
238 assert_eq!(result["name"], "Alice");
239 assert_eq!(result["age"], 30);
240}
241
242#[test]
243fn test_partial_json_unclosed_array() {

Callers

nothing calls this directly

Calls 1

try_parse_partial_jsonFunction · 0.85

Tested by

no test coverage detected