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

Function test_binary_view_concat_error

arrow-string/src/concat_elements.rs:613–622  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

611
612 #[test]
613 fn test_binary_view_concat_error() {
614 let left = BinaryViewArray::from_iter(vec![Some(b"foo" as &[u8]), Some(b"bar")]);
615 let right = BinaryViewArray::from_iter(vec![Some(b"baz" as &[u8])]);
616
617 let output = concat_elements_binary_view_array(&left, &right);
618 assert_eq!(
619 output.unwrap_err().to_string(),
620 "Compute error: Arrays must have the same length: 2 != 1".to_string()
621 );
622 }
623
624 #[test]
625 fn test_binary_view_concat_empty() {

Callers

nothing calls this directly

Calls 2

from_iterFunction · 0.50

Tested by

no test coverage detected