()
| 2782 | |
| 2783 | #[test] |
| 2784 | fn test_into_builder_cloned_array() { |
| 2785 | let array: Int32Array = vec![1, 2, 3].into_iter().map(Some).collect(); |
| 2786 | |
| 2787 | let boxed: ArrayRef = Arc::new(array); |
| 2788 | |
| 2789 | let col: Int32Array = PrimitiveArray::<Int32Type>::from(boxed.to_data()); |
| 2790 | let err = col.into_builder(); |
| 2791 | |
| 2792 | match err { |
| 2793 | Ok(_) => panic!("Should not get builder from cloned array"), |
| 2794 | Err(returned) => { |
| 2795 | let expected: Int32Array = vec![1, 2, 3].into_iter().map(Some).collect(); |
| 2796 | assert_eq!(expected, returned) |
| 2797 | } |
| 2798 | } |
| 2799 | } |
| 2800 | |
| 2801 | #[test] |
| 2802 | fn test_into_builder_on_sliced_array() { |
nothing calls this directly
no test coverage detected