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

Function empty_bitmap

nodedb/src/query/bitmap.rs:85–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83
84 #[test]
85 fn empty_bitmap() {
86 let bm = from_ids(std::iter::empty());
87 assert!(bm.is_empty());
88 let bytes = serialize(&bm).unwrap();
89 let bm2 = deserialize(&bytes).unwrap();
90 assert!(bm2.is_empty());
91 }
92}

Callers

nothing calls this directly

Calls 4

from_idsFunction · 0.85
serializeFunction · 0.85
deserializeFunction · 0.85
emptyFunction · 0.50

Tested by

no test coverage detected