MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / extract_dot_path_works

Function extract_dot_path_works

nodedb-query/src/msgpack_scan/field.rs:141–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139
140 #[test]
141 fn extract_dot_path_works() {
142 let buf = encode(&json!({"addr": {"zip": "10001"}}));
143 let (start, _end) = extract_dot_path(&buf, 0, "addr.zip").unwrap();
144 assert_eq!(read_str(&buf, start), Some("10001"));
145 }
146
147 #[test]
148 fn extract_path_missing_intermediate() {

Callers

nothing calls this directly

Calls 2

extract_dot_pathFunction · 0.85
encodeFunction · 0.70

Tested by

no test coverage detected