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

Function test_extract_json_direct

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

Source from the content-addressed store, hash-verified

152
153#[test]
154fn test_extract_json_direct() {
155 let input = r#"{"name": "Alice", "age": 30}"#;
156 let result = extract_json_value(input).unwrap();
157 assert_eq!(result["name"], "Alice");
158 assert_eq!(result["age"], 30);
159}
160
161#[test]
162fn test_extract_json_with_whitespace() {

Callers

nothing calls this directly

Calls 1

extract_json_valueFunction · 0.85

Tested by

no test coverage detected