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

Function empty_bitmap

nodedb-columnar/src/delete_bitmap.rs:249–259  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

247
248 #[test]
249 fn empty_bitmap() {
250 let bm = DeleteBitmap::new();
251 assert!(bm.is_empty());
252 assert_eq!(bm.deleted_count(), 0);
253 assert!(!bm.is_deleted(0));
254
255 // Serialization roundtrip of empty bitmap.
256 let bytes = bm.to_bytes().unwrap();
257 let restored = DeleteBitmap::from_bytes(&bytes).expect("deserialize");
258 assert!(restored.is_empty());
259 }
260}

Callers

nothing calls this directly

Calls 2

to_bytesMethod · 0.45
expectMethod · 0.45

Tested by

no test coverage detected