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

Function setup

tests/CppUTest/MemoryLeakWarningTest.cpp:77–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 TestTestingFixture* fixture;
76
77 void setup()
78 {
79 fixture = new TestTestingFixture();
80 detector = new MemoryLeakDetector(&dummy);
81 allocator = new TestMemoryAllocator;
82 memPlugin = new MemoryLeakWarningPlugin("TestMemoryLeakWarningPlugin", detector);
83 fixture->installPlugin(memPlugin);
84 memPlugin->enable();
85
86 leak1 = NULLPTR;
87 leak2 = NULLPTR;
88 }
89
90 void teardown()
91 {

Callers

nothing calls this directly

Calls 3

installPluginMethod · 0.45
enableMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected