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

Function test_binary_view_concat

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

Source from the content-addressed store, hash-verified

563
564 #[test]
565 fn test_binary_view_concat() {
566 let left = BinaryViewArray::from_iter(vec![Some(b"foo" as &[u8]), Some(b"bar"), None]);
567 let right = BinaryViewArray::from_iter(vec![None, Some(b"yyy" as &[u8]), Some(b"zzz")]);
568
569 let output = concat_elements_binary_view_array(&left, &right).unwrap();
570
571 let expected = BinaryViewArray::from_iter(vec![None, Some(b"baryyy" as &[u8]), None]);
572 assert_eq!(output, expected);
573 }
574
575 #[test]
576 fn test_string_view_concat() {

Callers

nothing calls this directly

Calls 2

from_iterFunction · 0.50

Tested by

no test coverage detected