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

Class CrashOnAllocationAllocator

include/CppUTest/TestMemoryAllocator.h:110–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108};
109
110class CrashOnAllocationAllocator : public TestMemoryAllocator
111{
112 unsigned allocationToCrashOn_;
113public:
114 CrashOnAllocationAllocator();
115 virtual ~CrashOnAllocationAllocator() _destructor_override;
116
117 virtual void setNumberToCrashOn(unsigned allocationToCrashOn);
118
119 virtual char* alloc_memory(size_t size, const char* file, size_t line) _override;
120};
121
122
123class NullUnknownAllocator: public TestMemoryAllocator

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected