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

Function setup

tests/CppUTest/MemoryLeakDetectorTest.cpp:114–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112 AllocatorForMemoryLeakDetectionTest* testAllocator;
113
114 void setup()
115 {
116 reporter = new MemoryLeakFailureForTest;
117 detector = new MemoryLeakDetector(reporter);
118 testAllocator = new AllocatorForMemoryLeakDetectionTest;
119 detector->enable();
120 detector->startChecking();
121 reporter->message = new SimpleString();
122 }
123 void teardown()
124 {
125 delete reporter->message;

Callers

nothing calls this directly

Calls 2

startCheckingMethod · 0.80
enableMethod · 0.45

Tested by

no test coverage detected