| 4298 | void SetUp() override { pool_ = default_memory_pool(); } |
| 4299 | |
| 4300 | static Result<std::shared_ptr<MemoryManager>> DeviceMapper(ArrowDeviceType type, |
| 4301 | int64_t id) { |
| 4302 | if (type != kMyDeviceType) { |
| 4303 | return Status::NotImplemented("should only be MyDevice"); |
| 4304 | } |
| 4305 | |
| 4306 | std::shared_ptr<Device> device = std::make_shared<MyDevice>(id); |
| 4307 | return device->default_memory_manager(); |
| 4308 | } |
| 4309 | |
| 4310 | static Result<std::shared_ptr<ArrayData>> ToDeviceData( |
| 4311 | const std::shared_ptr<MemoryManager>& mm, const ArrayData& data) { |
nothing calls this directly
no test coverage detected