()
| 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() { |
nothing calls this directly
no test coverage detected