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

Method reportFailure

src/CppUTest/MemoryLeakDetector.cpp:234–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234void MemoryLeakOutputStringBuffer::reportFailure(const char* message, const char* allocFile, size_t allocLine, size_t allocSize, TestMemoryAllocator* allocAllocator, const char* freeFile, size_t freeLine,
235 TestMemoryAllocator* freeAllocator, MemoryLeakFailure* reporter)
236{
237 outputBuffer_.add("%s", message);
238 addAllocationLocation(allocFile, allocLine, allocSize, allocAllocator);
239 addDeallocationLocation(freeFile, freeLine, freeAllocator);
240 reporter->fail(toString());
241}
242
243
244char* MemoryLeakOutputStringBuffer::toString()

Callers

nothing calls this directly

Calls 2

addMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected