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
130
SPICESTEST_PROFILE_FUNCTION
();
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
}
SPICESTEST_PROFILE_FUNCTION
#define SPICESTEST_PROFILE_FUNCTION()
Definition
Instrumentor.h:234
Spices::MemoryPool::Index
static size_t Index(size_t size)
Determine which freelist should process the memory block with given bytes.
Definition
MemoryPool.cpp:88
SpicesTest
Generated on Sun Mar 8 2026 10:24:50 for SpiecsEngine by
1.10.0