()
| 662 | |
| 663 | #[test] |
| 664 | fn bit_length_null_large_string() { |
| 665 | bit_length_null_cases() |
| 666 | .into_iter() |
| 667 | .for_each(|(input, len, expected)| { |
| 668 | let array = LargeStringArray::from(input); |
| 669 | let result = bit_length(&array).unwrap(); |
| 670 | assert_eq!(len, result.len()); |
| 671 | let result = result.as_any().downcast_ref::<Int64Array>().unwrap(); |
| 672 | |
| 673 | // convert to i64 |
| 674 | let expected: Int64Array = expected |
| 675 | .iter() |
| 676 | .map(|e| e.map(|e| e as i64)) |
| 677 | .collect::<Vec<_>>() |
| 678 | .into(); |
| 679 | assert_eq!(&expected, result); |
| 680 | }) |
| 681 | } |
| 682 | |
| 683 | #[test] |
| 684 | fn bit_length_null_binary() { |
nothing calls this directly
no test coverage detected