| 3850 | } |
| 3851 | |
| 3852 | static ArrayFactory SlicedArrayFactory(ArrayFactory factory) { |
| 3853 | return [=]() -> Result<std::shared_ptr<Array>> { |
| 3854 | ARROW_ASSIGN_OR_RAISE(auto arr, factory()); |
| 3855 | DCHECK_GE(arr->length(), 2); |
| 3856 | return arr->Slice(1, arr->length() - 2); |
| 3857 | }; |
| 3858 | } |
| 3859 | |
| 3860 | template <typename ArrayFactory> |
| 3861 | void TestWithArrayFactory(ArrayFactory&& factory) { |