MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / teardownTest

Method teardownTest

test/fixture.cpp:123–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123void TestFixture::teardownTest()
124{
125 teardownTestInternal();
126
127 if (mTimer)
128 mTimer->stop();
129
130 {
131 const std::string s = errout_str();
132 if (!s.empty())
133 throw std::runtime_error("unconsumed ErrorLogger err: " + s);
134 }
135 {
136 const std::string s = output_str();
137 if (!s.empty())
138 throw std::runtime_error("unconsumed ErrorLogger out: " + s);
139 }
140}
141
142std::string TestFixture::getLocationStr(const char * const filename, const unsigned int linenr) const
143{

Callers

nothing calls this directly

Calls 2

stopMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected