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

Function test_null_list_primitive

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

Source from the content-addressed store, hash-verified

1164
1165 #[test]
1166 fn test_null_list_primitive() {
1167 let data_type = DataType::List(Arc::new(Field::new_list_field(DataType::Int32, true)));
1168 let array = new_null_array(&data_type, 9);
1169 let a = array.as_any().downcast_ref::<ListArray>().unwrap();
1170 assert_eq!(a.len(), 9);
1171 assert_eq!(a.value_offsets()[9], 0i32);
1172 for i in 0..9 {
1173 assert!(a.is_null(i));
1174 }
1175 }
1176
1177 #[test]
1178 fn test_null_map() {

Callers

nothing calls this directly

Calls 3

new_null_arrayFunction · 0.85
ListClass · 0.50
as_anyMethod · 0.45

Tested by

no test coverage detected