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

Method setMockFailureStandardReporter

src/CppUTestExt/MockSupport.cpp:61–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void MockSupport::setMockFailureStandardReporter(MockFailureReporter* reporter)
62{
63 standardReporter_ = (reporter != NULLPTR) ? reporter : &defaultReporter_;
64
65 if (lastActualFunctionCall_)
66 lastActualFunctionCall_->setMockFailureReporter(standardReporter_);
67
68 for (MockNamedValueListNode* p = data_.begin(); p; p = p->next())
69 if (getMockSupport(p)) getMockSupport(p)->setMockFailureStandardReporter(standardReporter_);
70}
71
72void MockSupport::setActiveReporter(MockFailureReporter* reporter)
73{

Callers 5

postTestActionMethod · 0.80
cloneMethod · 0.80
TESTFunction · 0.80

Calls 3

beginMethod · 0.80
nextMethod · 0.80

Tested by 3

TESTFunction · 0.64