| 4357 | } |
| 4358 | |
| 4359 | static ArrayFactory SlicedArrayFactory(ArrayFactory factory) { |
| 4360 | return [=]() -> Result<std::shared_ptr<Array>> { |
| 4361 | ARROW_ASSIGN_OR_RAISE(auto arr, factory()); |
| 4362 | DCHECK_GE(arr->length(), 2); |
| 4363 | return arr->Slice(1, arr->length() - 2); |
| 4364 | }; |
| 4365 | } |
| 4366 | |
| 4367 | template <typename ArrayFactory> |
| 4368 | void TestWithArrayFactory(ArrayFactory&& factory) { |