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

Function bit_length_test_string

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

Source from the content-addressed store, hash-verified

536
537 #[test]
538 fn bit_length_test_string() {
539 bit_length_cases()
540 .into_iter()
541 .for_each(|(input, len, expected)| {
542 let array = StringArray::from(input);
543 let result = bit_length(&array).unwrap();
544 assert_eq!(len, result.len());
545 let result = result.as_any().downcast_ref::<Int32Array>().unwrap();
546 expected.iter().enumerate().for_each(|(i, value)| {
547 assert_eq!(*value, result.value(i));
548 });
549 })
550 }
551
552 #[test]
553 fn bit_length_test_large_string() {

Callers

nothing calls this directly

Calls 5

bit_length_casesFunction · 0.85
bit_lengthFunction · 0.85
into_iterMethod · 0.45
as_anyMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected