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

Function test_string_concat_empty_string

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

Source from the content-addressed store, hash-verified

391
392 #[test]
393 fn test_string_concat_empty_string() {
394 let left = [Some("foo"), Some(""), Some("bar")]
395 .into_iter()
396 .collect::<StringArray>();
397 let right = [Some("baz"), Some(""), Some("")]
398 .into_iter()
399 .collect::<StringArray>();
400
401 let output = concat_elements_utf8(&left, &right).unwrap();
402
403 let expected = [Some("foobaz"), Some(""), Some("bar")]
404 .into_iter()
405 .collect::<StringArray>();
406
407 assert_eq!(output, expected);
408 }
409
410 #[test]
411 fn test_string_concat_no_null() {

Callers

nothing calls this directly

Calls 2

concat_elements_utf8Function · 0.85
into_iterMethod · 0.45

Tested by

no test coverage detected