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

Function TEST

tests/CppUTestExt/MemoryReportAllocatorTest.cpp:38–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36};
37
38TEST(MemoryReportAllocator, FunctionsAreForwardedForMallocAllocator)
39{
40 allocator.setRealAllocator(getCurrentMallocAllocator());
41
42 STRCMP_EQUAL("malloc", allocator.alloc_name());
43 STRCMP_EQUAL("free", allocator.free_name());
44}
45
46TEST(MemoryReportAllocator, keepingTrackOfActualAllocator)
47{

Callers

nothing calls this directly

Calls 5

setRealAllocatorMethod · 0.80
alloc_nameMethod · 0.45
free_nameMethod · 0.45
actualAllocatorMethod · 0.45

Tested by

no test coverage detected