MCPcopy Create free account
hub / github.com/defold/defold / TEST

Function TEST

engine/resource/src/test/test_block_allocator.cpp:21–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19#include "../block_allocator.h"
20
21TEST(BlockAllocator, CreateDestroy)
22{
23 dmBlockAllocator::HContext context = dmBlockAllocator::CreateContext();
24 ASSERT_NE((dmBlockAllocator::HContext)0, context);
25 dmBlockAllocator::DeleteContext(context);
26}
27
28TEST(BlockAllocator, TestReuse)
29{

Callers

nothing calls this directly

Calls 5

AllocateFunction · 0.85
freeFunction · 0.85
CreateContextFunction · 0.50
DeleteContextFunction · 0.50
FreeFunction · 0.50

Tested by

no test coverage detected