MCPcopy Create free account
hub / github.com/apache/arrow-rs / bit_length_null_large_string

Function bit_length_null_large_string

arrow-string/src/length.rs:664–681  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 5

bit_length_null_casesFunction · 0.85
bit_lengthFunction · 0.85
into_iterMethod · 0.45
as_anyMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected