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

Method preTestAction

src/CppUTestExt/MemoryReporterPlugin.cpp:119–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119void MemoryReporterPlugin::preTestAction(UtestShell& test, TestResult& result)
120{
121 if (formatter_ == NULLPTR) return;
122
123 initializeAllocator(&mallocAllocator, result);
124 initializeAllocator(&newAllocator, result);
125 initializeAllocator(&newArrayAllocator, result);
126
127 setGlobalMemoryReportAllocators();
128
129 if (test.getGroup() != currentTestGroup_) {
130 formatter_->report_testgroup_start(&result, test);
131 currentTestGroup_ = test.getGroup();
132 }
133
134 formatter_->report_test_start(&result, test);
135}
136
137void MemoryReporterPlugin::postTestAction(UtestShell& test, TestResult& result)
138{

Callers

nothing calls this directly

Calls 3

getGroupMethod · 0.80
report_test_startMethod · 0.45

Tested by

no test coverage detected