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

Function test_empty_list_primitive

arrow-array/src/array/mod.rs:1108–1114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1106
1107 #[test]
1108 fn test_empty_list_primitive() {
1109 let data_type = DataType::List(Arc::new(Field::new_list_field(DataType::Int32, false)));
1110 let array = new_empty_array(&data_type);
1111 let a = array.as_any().downcast_ref::<ListArray>().unwrap();
1112 assert_eq!(a.len(), 0);
1113 assert_eq!(a.value_offsets()[0], 0i32);
1114 }
1115
1116 #[test]
1117 fn test_null_boolean() {

Callers

nothing calls this directly

Calls 3

new_empty_arrayFunction · 0.85
ListClass · 0.50
as_anyMethod · 0.45

Tested by

no test coverage detected