| 4306 | void SetUp() override { pool_ = default_memory_pool(); } |
| 4307 | |
| 4308 | static Result<std::shared_ptr<MemoryManager>> DeviceMapper(ArrowDeviceType type, |
| 4309 | int64_t id) { |
| 4310 | if (type != kMyDeviceType) { |
| 4311 | return Status::NotImplemented("should only be MyDevice"); |
| 4312 | } |
| 4313 | |
| 4314 | std::shared_ptr<Device> device = std::make_shared<MyDevice>(id); |
| 4315 | return device->default_memory_manager(); |
| 4316 | } |
| 4317 | |
| 4318 | static Result<std::shared_ptr<ArrayData>> ToDeviceData( |
| 4319 | const std::shared_ptr<MemoryManager>& mm, const ArrayData& data) { |
nothing calls this directly
no test coverage detected