()
| 235 | |
| 236 | #[test] |
| 237 | fn merge_bitmaps() { |
| 238 | let mut bm1 = DeleteBitmap::new(); |
| 239 | bm1.mark_deleted_batch(&[1, 2, 3]); |
| 240 | |
| 241 | let mut bm2 = DeleteBitmap::new(); |
| 242 | bm2.mark_deleted_batch(&[3, 4, 5]); |
| 243 | |
| 244 | bm1.merge(&bm2); |
| 245 | assert_eq!(bm1.deleted_count(), 5); // Union: {1,2,3,4,5}. |
| 246 | } |
| 247 | |
| 248 | #[test] |
| 249 | fn empty_bitmap() { |
nothing calls this directly
no test coverage detected