| 4290 | } |
| 4291 | |
| 4292 | static ArrayFactory SlicedArrayFactory(ArrayFactory factory) { |
| 4293 | return [=]() -> Result<std::shared_ptr<Array>> { |
| 4294 | ARROW_ASSIGN_OR_RAISE(auto arr, factory()); |
| 4295 | DCHECK_GE(arr->length(), 2); |
| 4296 | return arr->Slice(1, arr->length() - 2); |
| 4297 | }; |
| 4298 | } |
| 4299 | |
| 4300 | template <typename ArrayFactory> |
| 4301 | void TestWithArrayFactory(ArrayFactory&& factory) { |