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

Function test_null_buffer_builder_no_null

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

Source from the content-addressed store, hash-verified

302
303 #[test]
304 fn test_null_buffer_builder_no_null() {
305 let mut builder = NullBufferBuilder::new(0);
306 builder.append_non_null();
307 builder.append_n_non_nulls(2);
308 builder.append_slice(&[true, true, true]);
309 assert_eq!(6, builder.len());
310 assert_eq!(0, builder.allocated_size());
311
312 let buf = builder.finish();
313 assert!(buf.is_none());
314 }
315
316 #[test]
317 fn test_null_buffer_builder_reset() {

Callers

nothing calls this directly

Calls 4

append_non_nullMethod · 0.80
append_n_non_nullsMethod · 0.80
append_sliceMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected