MCPcopy Create free account
hub / github.com/calebwin/pgclaw / test_extract_nested_json

Function test_extract_nested_json

src/http.rs:251–256  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

249
250 #[test]
251 fn test_extract_nested_json() {
252 let resp = r#"{"priority": "high", "__memory": {"last_seen": "critical ticket"}}"#;
253 let updates = extract_column_updates(resp).unwrap();
254 assert_eq!(updates.get("priority").unwrap(), "high");
255 assert!(updates.get("__memory").unwrap().is_object());
256 }
257
258 #[test]
259 fn test_extract_with_code_fence() {

Callers

nothing calls this directly

Calls 1

extract_column_updatesFunction · 0.85

Tested by

no test coverage detected