| 6111 | } |
| 6112 | |
| 6113 | void AssertionHandler::complete() { |
| 6114 | setCompleted(); |
| 6115 | if( m_reaction.shouldDebugBreak ) { |
| 6116 | |
| 6117 | // If you find your debugger stopping you here then go one level up on the |
| 6118 | // call-stack for the code that caused it (typically a failed assertion) |
| 6119 | |
| 6120 | // (To go back to the test and change execution, jump over the throw, next) |
| 6121 | CATCH_BREAK_INTO_DEBUGGER(); |
| 6122 | } |
| 6123 | if (m_reaction.shouldThrow) { |
| 6124 | #if !defined(CATCH_CONFIG_DISABLE_EXCEPTIONS) |
| 6125 | throw Catch::TestFailureException(); |
| 6126 | #else |
| 6127 | CATCH_ERROR( "Test failure requires aborting test!" ); |
| 6128 | #endif |
| 6129 | } |
| 6130 | } |
| 6131 | void AssertionHandler::setCompleted() { |
| 6132 | m_completed = true; |
| 6133 | } |
nothing calls this directly
no test coverage detected