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

Method failNthAllocAt

src/CppUTest/TestMemoryAllocator.cpp:340–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340void FailableMemoryAllocator::failNthAllocAt(int allocationNumber, const char* file, size_t line)
341{
342 LocationToFailAllocNode* newNode = (LocationToFailAllocNode*) (void*) allocMemoryLeakNode(sizeof(LocationToFailAllocNode));
343 newNode->failNthAllocAt(allocationNumber, file, line, head_);
344 head_ = newNode;
345}
346
347char* FailableMemoryAllocator::alloc_memory(size_t size, const char* file, size_t line)
348{

Callers 2

TESTFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected