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

Function test_null_array_builder

arrow-array/src/builder/null_builder.rs:143–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141
142 #[test]
143 fn test_null_array_builder() {
144 let mut builder = NullArray::builder(10);
145 builder.append_null();
146 builder.append_nulls(4);
147 builder.append_empty_value();
148 builder.append_empty_values(4);
149
150 let arr = builder.finish();
151 assert_eq!(10, arr.len());
152 assert_eq!(0, arr.offset());
153 assert_eq!(0, arr.null_count());
154 assert!(arr.is_nullable());
155 }
156
157 #[test]
158 fn test_null_array_builder_finish_cloned() {

Callers

nothing calls this directly

Calls 5

append_empty_valueMethod · 0.80
append_empty_valuesMethod · 0.80
append_nullMethod · 0.45
append_nullsMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected