()
| 244 | |
| 245 | #[test] |
| 246 | fn length_test_string() { |
| 247 | length_cases_string() |
| 248 | .into_iter() |
| 249 | .for_each(|(input, len, expected)| { |
| 250 | let array = StringArray::from(input); |
| 251 | let result = length(&array).unwrap(); |
| 252 | assert_eq!(len, result.len()); |
| 253 | let result = result.as_any().downcast_ref::<Int32Array>().unwrap(); |
| 254 | expected.iter().enumerate().for_each(|(i, value)| { |
| 255 | assert_eq!(*value, result.value(i)); |
| 256 | }); |
| 257 | }) |
| 258 | } |
| 259 | |
| 260 | #[test] |
| 261 | fn length_test_large_string() { |
nothing calls this directly
no test coverage detected