SpiecsEngine
 
Loading...
Searching...
No Matches

◆ TEST_F() [21/72]

SpicesTest::TEST_F ( MemoryPool_test ,
Index  )

Testing Spices::MemoryPool::Index.

Definition at line 128 of file MemoryPool_test.h.

128 {
129
131
132 EXPECT_EQ(Spices::MemoryPool::Index(1), 0);
133 EXPECT_EQ(Spices::MemoryPool::Index(16), 1);
134 EXPECT_EQ(Spices::MemoryPool::Index(128), 15);
135 EXPECT_EQ(Spices::MemoryPool::Index(256 * 1024), 207);
136 }
#define SPICESTEST_PROFILE_FUNCTION()
static size_t Index(size_t size)
Determine which freelist should process the memory block with given bytes.