()
| 1153 | |
| 1154 | #[test] |
| 1155 | fn test_null_variable_sized() { |
| 1156 | let array = new_null_array(&DataType::Utf8, 9); |
| 1157 | let a = array.as_any().downcast_ref::<StringArray>().unwrap(); |
| 1158 | assert_eq!(a.len(), 9); |
| 1159 | assert_eq!(a.value_offsets()[9], 0i32); |
| 1160 | for i in 0..9 { |
| 1161 | assert!(a.is_null(i)); |
| 1162 | } |
| 1163 | } |
| 1164 | |
| 1165 | #[test] |
| 1166 | fn test_null_list_primitive() { |
nothing calls this directly
no test coverage detected