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

Method assertThrowFail

test/fixture.cpp:305–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305void TestFixture::assertThrowFail(const char * const filename, const unsigned int linenr) const
306{
307 ++fails_counter;
308 errmsg << getLocationStr(filename, linenr) << ": Assertion failed. "
309 << "The expected exception was not thrown" << std::endl << "_____" << std::endl;
310 throw AssertFailedError();
311}
312
313void TestFixture::assertNoThrowFail(const char * const filename, const unsigned int linenr, bool bailout) const
314{

Callers

nothing calls this directly

Calls 1

AssertFailedErrorClass · 0.85

Tested by

no test coverage detected