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

Function test_string_concat

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

Source from the content-addressed store, hash-verified

373
374 #[test]
375 fn test_string_concat() {
376 let left = [Some("foo"), Some("bar"), None]
377 .into_iter()
378 .collect::<StringArray>();
379 let right = [None, Some("yyy"), Some("zzz")]
380 .into_iter()
381 .collect::<StringArray>();
382
383 let output = concat_elements_utf8(&left, &right).unwrap();
384
385 let expected = [None, Some("baryyy"), None]
386 .into_iter()
387 .collect::<StringArray>();
388
389 assert_eq!(output, expected);
390 }
391
392 #[test]
393 fn test_string_concat_empty_string() {

Callers

nothing calls this directly

Calls 2

concat_elements_utf8Function · 0.85
into_iterMethod · 0.45

Tested by

no test coverage detected