MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / checkIfShouldThrow

Function checkIfShouldThrow

tests/framework/src/doctest.cpp:996–1007  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

994 curr_rep->function(__VA_ARGS__)
995
996 bool checkIfShouldThrow(assertType::Enum at) {
997 if(at & assertType::is_require) //!OCLINT bitwise operator in conditional
998 return true;
999
1000 if((at & assertType::is_check) //!OCLINT bitwise operator in conditional
1001 && getContextOptions()->abort_after > 0 &&
1002 (g_cs->numAssertsFailed + g_cs->numAssertsFailedCurrentTest_atomic) >=
1003 getContextOptions()->abort_after)
1004 return true;
1005
1006 return false;
1007 }
1008
1009#ifndef DOCTEST_CONFIG_NO_EXCEPTIONS
1010 DOCTEST_NORETURN void throwException() {

Callers 1

reactMethod · 0.85

Calls 1

getContextOptionsFunction · 0.85

Tested by

no test coverage detected