()
| 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() { |
nothing calls this directly
no test coverage detected