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

Method assertThrow

test/fixture.cpp:297–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297void TestFixture::assertThrow(const char * const filename, const unsigned int linenr) const
298{
299 ++fails_counter;
300 errmsg << getLocationStr(filename, linenr) << ": Assertion succeeded. "
301 << "The expected exception was thrown" << std::endl << "_____" << std::endl;
302 throw AssertFailedError();
303}
304
305void TestFixture::assertThrowFail(const char * const filename, const unsigned int linenr) const
306{

Callers

nothing calls this directly

Calls 1

AssertFailedErrorClass · 0.85

Tested by

no test coverage detected