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

Function test_partial_json_unclosed_string

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

Source from the content-addressed store, hash-verified

249
250#[test]
251fn test_partial_json_unclosed_string() {
252 let input = r#"{"name": "Ali"#;
253 let result = try_parse_partial_json(input).unwrap();
254 assert_eq!(result["name"], "Ali");
255}
256
257#[test]
258fn test_partial_json_trailing_comma() {

Callers

nothing calls this directly

Calls 1

try_parse_partial_jsonFunction · 0.85

Tested by

no test coverage detected