MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / test_pool_alloc

Method test_pool_alloc

tests/unit-tests/dds/DCPS/MemoryPool.cpp:22–28  ·  view source on GitHub ↗

Allocate a block

Source from the content-addressed store, hash-verified

20public:
21 // Allocate a block
22 void test_pool_alloc() {
23 MemoryPool pool(1024, 8);
24 void* ptr = pool.pool_alloc(128);
25
26 EXPECT_TRUE(ptr);
27 validate_pool(pool, 128);
28 }
29
30 // Allocate a several blocks
31 void test_pool_allocs() {

Callers 1

TESTFunction · 0.80

Calls 1

pool_allocMethod · 0.80

Tested by

no test coverage detected