()
| 2608 | |
| 2609 | #[test] |
| 2610 | fn test_count_nulls() { |
| 2611 | let buffer = Buffer::from([0b00010110, 0b10011111]); |
| 2612 | let buffer = NullBuffer::new(BooleanBuffer::new(buffer, 0, 16)); |
| 2613 | let count = count_nulls(Some(&buffer), 0, 16); |
| 2614 | assert_eq!(count, 7); |
| 2615 | |
| 2616 | let count = count_nulls(Some(&buffer), 4, 8); |
| 2617 | assert_eq!(count, 3); |
| 2618 | } |
| 2619 | |
| 2620 | #[test] |
| 2621 | fn test_contains_nulls() { |
nothing calls this directly
no test coverage detected