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

Function block_fully_deleted

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

Source from the content-addressed store, hash-verified

195
196 #[test]
197 fn block_fully_deleted() {
198 let mut bm = DeleteBitmap::new();
199 // Delete rows 10..20.
200 for i in 10..20 {
201 bm.mark_deleted(i);
202 }
203 assert!(bm.is_block_fully_deleted(10, 10));
204 assert!(!bm.is_block_fully_deleted(10, 11)); // Row 20 is not deleted.
205 assert!(!bm.is_block_fully_deleted(5, 10)); // Rows 5-9 are not deleted.
206 }
207
208 #[test]
209 fn apply_to_validity() {

Callers

nothing calls this directly

Calls 1

mark_deletedMethod · 0.45

Tested by

no test coverage detected