| 40 | class AllocationTest : public testing::Test {}; |
| 41 | |
| 42 | TEST_F(AllocationTest, basic) { |
| 43 | ASSERT_EQ(AllocationTraits::numPagesInHugePage(), 512); |
| 44 | ASSERT_EQ(AllocationTraits::roundUpPageBytes(0), 0); |
| 45 | ASSERT_EQ(AllocationTraits::roundUpPageBytes(1), AllocationTraits::kPageSize); |
| 46 | ASSERT_EQ( |
| 47 | AllocationTraits::roundUpPageBytes(4093), AllocationTraits::kPageSize); |
| 48 | ASSERT_EQ( |
| 49 | AllocationTraits::roundUpPageBytes(4094), AllocationTraits::kPageSize); |
| 50 | } |
| 51 | |
| 52 | // This test is to verify that Allocation doesn't merge different append buffers |
| 53 | // into the same PageRun even if two buffers are contiguous in memory space. |
nothing calls this directly
no test coverage detected