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

Method isNewAllocator

src/CppUTestExt/CodeMemoryReportFormatter.cpp:106–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106bool CodeMemoryReportFormatter::isNewAllocator(TestMemoryAllocator* allocator)
107{
108 return SimpleString::StrCmp(allocator->alloc_name(), defaultNewAllocator()->alloc_name()) == 0 || SimpleString::StrCmp(allocator->alloc_name(), defaultNewArrayAllocator()->alloc_name()) == 0;
109}
110
111bool CodeMemoryReportFormatter::variableExists(const SimpleString& variableName)
112{

Callers

nothing calls this directly

Calls 3

defaultNewAllocatorFunction · 0.85
defaultNewArrayAllocatorFunction · 0.85
alloc_nameMethod · 0.45

Tested by

no test coverage detected