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

Function missing_field

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

Source from the content-addressed store, hash-verified

143
144 #[test]
145 fn missing_field() {
146 let buf = encode(&json!({"x": 1}));
147 let idx = FieldIndex::build(&buf, 0).unwrap();
148 assert!(idx.get("y").is_none());
149 }
150
151 #[test]
152 fn empty_map() {

Callers

nothing calls this directly

Calls 1

encodeFunction · 0.70

Tested by

no test coverage detected