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

Method stopMemoryLeakReporting

src/CppUTest/MemoryLeakDetector.cpp:179–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179void MemoryLeakOutputStringBuffer::stopMemoryLeakReporting()
180{
181 if (total_leaks_ == 0) {
182 addNoMemoryLeaksMessage();
183 return;
184 }
185
186 bool buffer_reached_its_capacity = outputBuffer_.reachedItsCapacity();
187 outputBuffer_.resetWriteLimit();
188
189 if (buffer_reached_its_capacity)
190 addErrorMessageForTooMuchLeaks();
191
192 addMemoryLeakFooter(total_leaks_);
193
194 if (giveWarningOnUsingMalloc_)
195 addWarningForUsingMalloc();
196
197}
198
199void MemoryLeakOutputStringBuffer::addMemoryLeakHeader()
200{

Callers 1

Calls 2

reachedItsCapacityMethod · 0.80
resetWriteLimitMethod · 0.80

Tested by

no test coverage detected