| 3909 | } |
| 3910 | |
| 3911 | static ArrayFactory SlicedArrayFactory(ArrayFactory factory) { |
| 3912 | return [=]() -> Result<std::shared_ptr<Array>> { |
| 3913 | ARROW_ASSIGN_OR_RAISE(auto arr, factory()); |
| 3914 | DCHECK_GE(arr->length(), 2); |
| 3915 | return arr->Slice(1, arr->length() - 2); |
| 3916 | }; |
| 3917 | } |
| 3918 | |
| 3919 | template <typename ArrayFactory> |
| 3920 | void TestWithArrayFactory(ArrayFactory&& factory) { |