Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/defold/defold
/ TEST
Function
TEST
engine/dlib/src/test/test_memory.cpp:21–26 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
19
#include
"../dlib/memory.h"
20
21
TEST(dmMemory, Malloc)
22
{
23
void* memory = malloc(1024*1024);
24
ASSERT_TRUE(memory != 0);
25
free(memory);//
26
}
27
28
TEST(dmMemory, AlignedMalloc)
29
{
Callers
nothing calls this directly
Calls
4
malloc
Function · 0.85
free
Function · 0.85
AlignedMalloc
Function · 0.85
AlignedFree
Function · 0.85
Tested by
no test coverage detected