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

Function test_append_empty_array

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

Source from the content-addressed store, hash-verified

819
820 #[test]
821 fn test_append_empty_array() {
822 let arr = GenericStringArray::<i32>::from(Vec::<&str>::new());
823 let mut builder = GenericStringBuilder::<i32>::new();
824 builder.append_array(&arr).unwrap();
825 let result = builder.finish();
826 assert_eq!(result.len(), 0);
827 }
828
829 #[test]
830 fn test_append_array_with_offset_not_starting_at_0() {

Callers

nothing calls this directly

Calls 2

append_arrayMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected