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

Method report_free_memory

src/CppUTestExt/CodeMemoryReportFormatter.cpp:163–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163void CodeMemoryReportFormatter::report_free_memory(TestResult* result, TestMemoryAllocator* allocator, char* memory, const char* file, size_t line)
164{
165 SimpleString variableName;
166 CodeReportingAllocationNode* node = findNode(memory);
167
168 if (memory == NULLPTR) variableName = "NULL";
169 else variableName = node->variableName_;
170
171 result->print(StringFromFormat("\t%s\n", getDeallocationString(allocator, variableName, file, line).asCharString()).asCharString());
172}

Callers

nothing calls this directly

Calls 3

StringFromFormatFunction · 0.85
asCharStringMethod · 0.80
printMethod · 0.45

Tested by

no test coverage detected