| 4239 | void SetUp() override { pool_ = default_memory_pool(); } |
| 4240 | |
| 4241 | static Result<std::shared_ptr<MemoryManager>> DeviceMapper(ArrowDeviceType type, |
| 4242 | int64_t id) { |
| 4243 | if (type != kMyDeviceType) { |
| 4244 | return Status::NotImplemented("should only be MyDevice"); |
| 4245 | } |
| 4246 | |
| 4247 | std::shared_ptr<Device> device = std::make_shared<MyDevice>(id); |
| 4248 | return device->default_memory_manager(); |
| 4249 | } |
| 4250 | |
| 4251 | static Result<std::shared_ptr<ArrayData>> ToDeviceData( |
| 4252 | const std::shared_ptr<MemoryManager>& mm, const ArrayData& data) { |
nothing calls this directly
no test coverage detected