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

Function missing_field_is_null

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

Source from the content-addressed store, hash-verified

139
140 #[test]
141 fn missing_field_is_null() {
142 let doc = encode(&json!({"x": 1}));
143 let key = build_group_key(&doc, &["missing".into()]);
144 assert_eq!(key, "[null]");
145 }
146
147 #[test]
148 fn empty_group_fields() {

Callers

nothing calls this directly

Calls 2

build_group_keyFunction · 0.85
encodeFunction · 0.70

Tested by

no test coverage detected