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

Method failAllocNumber

src/CppUTest/TestMemoryAllocator.cpp:333–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331}
332
333void FailableMemoryAllocator::failAllocNumber(int number)
334{
335 LocationToFailAllocNode* newNode = (LocationToFailAllocNode*) (void*) allocMemoryLeakNode(sizeof(LocationToFailAllocNode));
336 newNode->failAtAllocNumber(number, head_);
337 head_ = newNode;
338}
339
340void FailableMemoryAllocator::failNthAllocAt(int allocationNumber, const char* file, size_t line)
341{

Callers 2

TESTFunction · 0.80
_failingAllocIsNeverDoneFunction · 0.80

Calls 1

failAtAllocNumberMethod · 0.80

Tested by

no test coverage detected