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

Function test_append_non_nulls_zero

arrow-array/src/builder/struct_builder.rs:827–839  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

825
826 #[test]
827 fn test_append_non_nulls_zero() {
828 let mut builder = StructBuilder::new(Fields::empty(), vec![]);
829 builder.append_non_nulls(0);
830 assert_eq!(builder.len(), 0);
831
832 builder.append(true);
833 builder.append_non_nulls(0);
834 assert_eq!(builder.len(), 1);
835
836 let arr = builder.finish();
837 assert_eq!(arr.len(), 1);
838 assert_eq!(arr.null_count(), 0);
839 }
840}

Callers

nothing calls this directly

Calls 3

append_non_nullsMethod · 0.80
appendMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected