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

Method createMemoryFormatter

src/CppUTestExt/MemoryReporterPlugin.cpp:57–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57MemoryReportFormatter* MemoryReporterPlugin::createMemoryFormatter(const SimpleString& type)
58{
59 if (type == "normal") {
60 return new NormalMemoryReportFormatter;
61 }
62 else if (type == "code") {
63 return new CodeMemoryReportFormatter(defaultMallocAllocator());
64 }
65 return NULLPTR;
66}
67
68void MemoryReporterPlugin::destroyMemoryFormatter(MemoryReportFormatter* formatter)
69{

Callers

nothing calls this directly

Calls 1

defaultMallocAllocatorFunction · 0.85

Tested by

no test coverage detected