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

Function TEST

tests/CppUTestExt/MemoryReportFormatterTest.cpp:56–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54
55
56TEST(NormalMemoryReportFormatter, mallocCreatesAnMallocCall)
57{
58 formatter.report_alloc_memory(testResult, defaultMallocAllocator(), 10, memory01, "file", 9);
59 TESTOUTPUT_EQUAL(StringFromFormat("\tAllocation using malloc of size: 10 pointer: %p at file:9\n", (void*) memory01).asCharString());
60}
61
62TEST(NormalMemoryReportFormatter, freeCreatesAnFreeCall)
63{

Callers

nothing calls this directly

Calls 8

defaultMallocAllocatorFunction · 0.85
StringFromFormatFunction · 0.85
asCharStringMethod · 0.80
report_alloc_memoryMethod · 0.45
report_free_memoryMethod · 0.45
report_test_startMethod · 0.45
report_test_endMethod · 0.45

Tested by

no test coverage detected