| 4349 | } |
| 4350 | |
| 4351 | static ArrayFactory SlicedArrayFactory(ArrayFactory factory) { |
| 4352 | return [=]() -> Result<std::shared_ptr<Array>> { |
| 4353 | ARROW_ASSIGN_OR_RAISE(auto arr, factory()); |
| 4354 | DCHECK_GE(arr->length(), 2); |
| 4355 | return arr->Slice(1, arr->length() - 2); |
| 4356 | }; |
| 4357 | } |
| 4358 | |
| 4359 | template <typename ArrayFactory> |
| 4360 | void TestWithArrayFactory(ArrayFactory&& factory) { |