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

Function batch_delete

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

Source from the content-addressed store, hash-verified

157
158 #[test]
159 fn batch_delete() {
160 let mut bm = DeleteBitmap::new();
161 bm.mark_deleted_batch(&[1, 3, 5, 7, 9]);
162 assert_eq!(bm.deleted_count(), 5);
163 assert!(bm.is_deleted(3));
164 assert!(!bm.is_deleted(4));
165 }
166
167 #[test]
168 fn serialization_roundtrip() {

Callers

nothing calls this directly

Calls 1

mark_deleted_batchMethod · 0.80

Tested by

no test coverage detected