| 51 | } |
| 52 | |
| 53 | TEST(EVAllocator, TestSmallAllocation) { |
| 54 | auto allocator = ev_allocator(); |
| 55 | constexpr int size = 10; |
| 56 | void** ptrs = new void*[size]; |
| 57 | for (int i = 0; i < size; ++i) { |
| 58 | ptrs[i] = allocator->AllocateRaw(4, 4); |
| 59 | } |
| 60 | |
| 61 | for (int i = 0; i < size; ++i) { |
| 62 | allocator->DeallocateRaw(ptrs[i]); |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | TEST(EVAllocator, TestBatchSmallAllocation) { |
| 67 | auto allocator = ev_allocator(); |
nothing calls this directly
no test coverage detected