()
| 493 | |
| 494 | #[test] |
| 495 | fn test_try_binary_mut_null_buffer() { |
| 496 | let a = Int32Array::from(vec![Some(3), Some(4), Some(5), Some(6), None]); |
| 497 | |
| 498 | let b = Int32Array::from(vec![Some(10), Some(11), Some(12), Some(13), Some(14)]); |
| 499 | |
| 500 | let r1 = try_binary_mut(a, &b, |a, b| Ok(a + b)).unwrap(); |
| 501 | |
| 502 | let a = Int32Array::from(vec![Some(3), Some(4), Some(5), Some(6), None]); |
| 503 | let b = Int32Array::new( |
| 504 | vec![10, 11, 12, 13, 14].into(), |
| 505 | Some(vec![true, true, true, true, true].into()), |
| 506 | ); |
| 507 | |
| 508 | // unwrap here means that no copying occurred |
| 509 | let r2 = try_binary_mut(a, &b, |a, b| Ok(a + b)).unwrap(); |
| 510 | assert_eq!(r1.unwrap(), r2.unwrap()); |
| 511 | } |
| 512 | |
| 513 | #[test] |
| 514 | fn test_unary_dict_mut() { |
nothing calls this directly
no test coverage detected