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

Function _failingAllocIsNeverDone

tests/CppUTest/TestMemoryAllocatorTest.cpp:264–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264static void _failingAllocIsNeverDone(FailableMemoryAllocator* failableMallocAllocator)
265{
266 failableMallocAllocator->failAllocNumber(1);
267 failableMallocAllocator->failAllocNumber(2);
268 failableMallocAllocator->failAllocNumber(3);
269 malloc(sizeof(int));
270 malloc(sizeof(int));
271 failableMallocAllocator->checkAllFailedAllocsWereDone();
272}
273
274TEST(FailableMemoryAllocator, CheckAllFailingAllocsWereDone)
275{

Callers

nothing calls this directly

Calls 2

failAllocNumberMethod · 0.80

Tested by

no test coverage detected