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

Function test_extract_numeric_value

src/http.rs:274–278  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

272
273 #[test]
274 fn test_extract_numeric_value() {
275 let resp = r#"{"score": 42, "label": "good"}"#;
276 let updates = extract_column_updates(resp).unwrap();
277 assert_eq!(updates.get("score").unwrap(), 42);
278 }
279
280 #[test]
281 fn test_extract_malformed_json() {

Callers

nothing calls this directly

Calls 1

extract_column_updatesFunction · 0.85

Tested by

no test coverage detected