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

Method report_alloc_memory

src/CppUTestExt/CodeMemoryReportFormatter.cpp:156–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156void CodeMemoryReportFormatter::report_alloc_memory(TestResult* result, TestMemoryAllocator* allocator, size_t size, char* memory, const char* file, size_t line)
157{
158 SimpleString variableName = createVariableNameFromFileLineInfo(file, line);
159 result->print(StringFromFormat("\t%s\n", getAllocationString(allocator, variableName, size).asCharString()).asCharString());
160 addNodeToList(variableName.asCharString(), memory, codeReportingList_);
161}
162
163void CodeMemoryReportFormatter::report_free_memory(TestResult* result, TestMemoryAllocator* allocator, char* memory, const char* file, size_t line)
164{

Callers

nothing calls this directly

Calls 3

StringFromFormatFunction · 0.85
asCharStringMethod · 0.80
printMethod · 0.45

Tested by

no test coverage detected