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

Function bit_length_null_utf8view

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

Source from the content-addressed store, hash-verified

581
582 #[test]
583 fn bit_length_null_utf8view() {
584 bit_length_null_cases()
585 .into_iter()
586 .for_each(|(input, len, expected)| {
587 let array = StringArray::from(input);
588 let result = bit_length(&array).unwrap();
589 assert_eq!(len, result.len());
590 let result = result.as_any().downcast_ref::<Int32Array>().unwrap();
591
592 let expected: Int32Array = expected.into();
593 assert_eq!(&expected, result);
594 })
595 }
596 #[test]
597 fn bit_length_binary() {
598 let value: Vec<&[u8]> = vec![b"one", &[0xff, 0xf8], b"three"];

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected