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

Function test_null_buffer_builder_is_valid

arrow-buffer/src/builder/null.rs:334–344  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

332
333 #[test]
334 fn test_null_buffer_builder_is_valid() {
335 let mut builder = NullBufferBuilder::new(0);
336 builder.append_n_non_nulls(6);
337 assert!(builder.is_valid(0));
338
339 builder.append_null();
340 assert!(!builder.is_valid(6));
341
342 builder.append_non_null();
343 assert!(builder.is_valid(7));
344 }
345
346 #[test]
347 fn test_null_buffer_builder_truncate() {

Callers

nothing calls this directly

Calls 3

append_n_non_nullsMethod · 0.80
append_non_nullMethod · 0.80
append_nullMethod · 0.45

Tested by

no test coverage detected