()
| 243 | |
| 244 | #[test] |
| 245 | fn test_string_null_offset_nulls() { |
| 246 | let array = StringArray::from(vec![Some("a"), Some("bc"), None, Some("defh")]); |
| 247 | let array = array.into_data().slice(1, 3); |
| 248 | |
| 249 | let arrays = vec![&array]; |
| 250 | |
| 251 | let mut mutable = MutableArrayData::new(arrays, true, 0); |
| 252 | |
| 253 | mutable.extend(0, 1, 3); |
| 254 | mutable.extend_nulls(1); |
| 255 | |
| 256 | let result = mutable.freeze(); |
| 257 | let result = StringArray::from(result); |
| 258 | |
| 259 | let expected = StringArray::from(vec![None, Some("defh"), None]); |
| 260 | assert_eq!(result, expected); |
| 261 | } |
| 262 | |
| 263 | #[test] |
| 264 | fn test_bool() { |
nothing calls this directly
no test coverage detected