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

Function test_string_view_concat

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

Source from the content-addressed store, hash-verified

574
575 #[test]
576 fn test_string_view_concat() {
577 let left = StringViewArray::from_iter(vec![Some("foo"), Some("bar"), None]);
578 let right = StringViewArray::from_iter(vec![None, Some("yyy"), Some("zzz")]);
579
580 let output = concat_elements_string_view_array(&left, &right).unwrap();
581
582 let expected = StringViewArray::from_iter(vec![None, Some("baryyy"), None]);
583 assert_eq!(output, expected);
584 }
585
586 #[test]
587 fn test_binary_view_concat_no_null() {

Callers

nothing calls this directly

Calls 2

from_iterFunction · 0.50

Tested by

no test coverage detected