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

Function test_empty

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

Source from the content-addressed store, hash-verified

769
770 #[test]
771 fn test_empty() {
772 let mut builder = StructBuilder::new(Fields::empty(), vec![]);
773 builder.append(true);
774 builder.append(false);
775
776 let a1 = builder.finish_cloned();
777 let a2 = builder.finish();
778 assert_eq!(a1, a2);
779 assert_eq!(a1.len(), 2);
780 assert_eq!(a1.null_count(), 1);
781 assert!(a1.is_valid(0));
782 assert!(a1.is_null(1));
783 }
784
785 #[test]
786 fn test_append_non_nulls() {

Callers

nothing calls this directly

Calls 3

appendMethod · 0.45
finish_clonedMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected