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

Method report

src/CppUTest/TestMemoryAllocator.cpp:604–615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602}
603
604SimpleString MemoryAccountant::report() const
605{
606 if (head_ == NULLPTR)
607 return reportNoAllocations();
608
609 SimpleString accountantReport = reportTitle() + reportHeader();
610
611 for (MemoryAccountantAllocationNode* node = head_; node; node = node->next_)
612 accountantReport += StringFromFormat(MEMORY_ACCOUNTANT_ROW_FORMAT, stringSize(node->size_).asCharString(), (int) node->allocations_, (int) node->deallocations_, (int) node->maxAllocations_);
613
614 return accountantReport + reportFooter();
615}
616
617AccountingTestMemoryAllocator::AccountingTestMemoryAllocator(MemoryAccountant& accountant, TestMemoryAllocator* origAllocator)
618 : accountant_(accountant), originalAllocator_(origAllocator), head_(NULLPTR)

Callers

nothing calls this directly

Calls 2

StringFromFormatFunction · 0.85
asCharStringMethod · 0.80

Tested by

no test coverage detected