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

Function test_extend

arrow-array/src/builder/primitive_builder.rs:659–665  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

657
658 #[test]
659 fn test_extend() {
660 let mut builder = PrimitiveBuilder::<Int16Type>::new();
661 builder.extend([1, 2, 3, 5, 2, 4, 4].into_iter().map(Some));
662 builder.extend([2, 4, 6, 2].into_iter().map(Some));
663 let array = builder.finish();
664 assert_eq!(array.values(), &[1, 2, 3, 5, 2, 4, 4, 2, 4, 6, 2]);
665 }
666
667 #[test]
668 fn test_primitive_array_append_array() {

Callers

nothing calls this directly

Calls 3

extendMethod · 0.45
into_iterMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected