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

Function test_malloc

tests/unit-tests/dds/DCPS/SafetyProfilePool.cpp:13–17  ·  view source on GitHub ↗

Malloc should return pointer

Source from the content-addressed store, hash-verified

11
12// Malloc should return pointer
13void test_malloc() {
14 SafetyProfilePool pool;
15 pool.configure_pool(1024, sizeof(void*));
16 EXPECT_TRUE(pool.malloc(24));
17}
18
19// Malloc should return pointer
20void test_mallocs() {

Callers 1

TESTFunction · 0.85

Calls 2

configure_poolMethod · 0.45
mallocMethod · 0.45

Tested by

no test coverage detected