MCPcopy Create free account
hub / github.com/apache/arrow-rs / test_count_nulls

Function test_count_nulls

arrow-data/src/data.rs:2610–2618  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

count_nullsFunction · 0.85

Tested by

no test coverage detected