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

Method assertTrue

src/CppUTest/Utest.cpp:367–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365} // LCOV_EXCL_LINE
366
367void UtestShell::assertTrue(bool condition, const char *checkString, const char *conditionString, const char* text, const char *fileName, size_t lineNumber, const TestTerminator& testTerminator)
368{
369 getTestResult()->countCheck();
370 if (!condition)
371 failWith(CheckFailure(this, fileName, lineNumber, checkString, conditionString, text), testTerminator);
372}
373
374void UtestShell::fail(const char *text, const char* fileName, size_t lineNumber, const TestTerminator& testTerminator)
375{

Callers 1

CHECK_C_LOCATIONFunction · 0.80

Calls 2

CheckFailureClass · 0.85
countCheckMethod · 0.45

Tested by

no test coverage detected