()
| 566 | |
| 567 | #[test] |
| 568 | fn bit_length_test_utf8view() { |
| 569 | bit_length_cases() |
| 570 | .into_iter() |
| 571 | .for_each(|(input, len, expected)| { |
| 572 | let string_array = StringViewArray::from(input); |
| 573 | let result = bit_length(&string_array).unwrap(); |
| 574 | assert_eq!(len, result.len()); |
| 575 | let result = result.as_any().downcast_ref::<Int32Array>().unwrap(); |
| 576 | expected.iter().enumerate().for_each(|(i, value)| { |
| 577 | assert_eq!(*value, result.value(i)); |
| 578 | }); |
| 579 | }) |
| 580 | } |
| 581 | |
| 582 | #[test] |
| 583 | fn bit_length_null_utf8view() { |
nothing calls this directly
no test coverage detected