()
| 207 | |
| 208 | #[test] |
| 209 | fn apply_to_validity() { |
| 210 | let mut bm = DeleteBitmap::new(); |
| 211 | bm.mark_deleted_batch(&[2, 4]); |
| 212 | |
| 213 | let mut valid = vec![true, true, true, true, true]; |
| 214 | bm.apply_to_validity(&mut valid, 0); |
| 215 | |
| 216 | assert!(valid[0]); |
| 217 | assert!(valid[1]); |
| 218 | assert!(!valid[2]); // Deleted. |
| 219 | assert!(valid[3]); |
| 220 | assert!(!valid[4]); // Deleted. |
| 221 | } |
| 222 | |
| 223 | #[test] |
| 224 | fn apply_to_validity_with_offset() { |
nothing calls this directly
no test coverage detected