| 171 | } |
| 172 | |
| 173 | void TestFixture::assert_(const char * const filename, const unsigned int linenr, const bool condition, const std::string& msg) const |
| 174 | { |
| 175 | if (!condition) { |
| 176 | ++fails_counter; |
| 177 | errmsg << getLocationStr(filename, linenr) << ": Assertion failed." << std::endl << "_____" << std::endl; |
| 178 | if (!msg.empty()) |
| 179 | errmsg << "Hint:" << std::endl << msg << std::endl; |
| 180 | throw AssertFailedError(); |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | void TestFixture::assertFailure(const char* const filename, const unsigned int linenr, const std::string& expected, const std::string& actual, const std::string& msg) const |
| 185 | { |
nothing calls this directly
no test coverage detected