Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ empty_map
Function
empty_map
nodedb-query/src/msgpack_scan/index.rs:152–156 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
150
151
#[test]
152
fn empty_map() {
153
let buf = encode(&json!({}));
154
let idx = FieldIndex::build(&buf, 0).unwrap();
155
assert!(idx.is_empty());
156
}
157
158
#[test]
159
fn small_doc_uses_flat() {
Callers
nothing calls this directly
Calls
1
encode
Function · 0.70
Tested by
no test coverage detected