| 50 | } |
| 51 | |
| 52 | void SetUp() override { |
| 53 | constexpr uint64_t kMaxMappedMemory = 64 << 20; |
| 54 | MemoryManager::Options options; |
| 55 | options.useMmapAllocator = true; |
| 56 | options.allocatorCapacity = kMaxMappedMemory; |
| 57 | options.arbitratorCapacity = kMaxMappedMemory; |
| 58 | memoryManager_ = std::make_unique<MemoryManager>(options); |
| 59 | mmapAllocator_ = static_cast<MmapAllocator*>(memoryManager_->allocator()); |
| 60 | pool_ = memoryManager_->addLeafPool("ByteStreamTest"); |
| 61 | rng_.seed(124); |
| 62 | tempDirPath_ = exec::test::TempDirectoryPath::create(); |
| 63 | fs_ = filesystems::getFileSystem(tempDirPath_->getPath(), nullptr); |
| 64 | } |
| 65 | |
| 66 | void TearDown() override {} |
| 67 |
nothing calls this directly
no test coverage detected