()
| 274 | |
| 275 | #[test] |
| 276 | fn length_test_string_view() { |
| 277 | length_cases_string() |
| 278 | .into_iter() |
| 279 | .for_each(|(input, len, expected)| { |
| 280 | let array = StringViewArray::from(input); |
| 281 | let result = length(&array).unwrap(); |
| 282 | assert_eq!(len, result.len()); |
| 283 | let result = result.as_any().downcast_ref::<Int32Array>().unwrap(); |
| 284 | expected.iter().enumerate().for_each(|(i, value)| { |
| 285 | assert_eq!(*value, result.value(i)); |
| 286 | }); |
| 287 | }) |
| 288 | } |
| 289 | |
| 290 | #[test] |
| 291 | fn length_test_binary() { |
nothing calls this directly
no test coverage detected