| 8229 | } |
| 8230 | |
| 8231 | void AssertionHandler::complete() { |
| 8232 | setCompleted(); |
| 8233 | if( m_reaction.shouldDebugBreak ) { |
| 8234 | |
| 8235 | // If you find your debugger stopping you here then go one level up on the |
| 8236 | // call-stack for the code that caused it (typically a failed assertion) |
| 8237 | |
| 8238 | // (To go back to the test and change execution, jump over the throw, next) |
| 8239 | CATCH_BREAK_INTO_DEBUGGER(); |
| 8240 | } |
| 8241 | if (m_reaction.shouldThrow) { |
| 8242 | #if !defined(CATCH_CONFIG_DISABLE_EXCEPTIONS) |
| 8243 | throw Catch::TestFailureException(); |
| 8244 | #else |
| 8245 | CATCH_ERROR( "Test failure requires aborting test!" ); |
| 8246 | #endif |
| 8247 | } |
| 8248 | } |
| 8249 | void AssertionHandler::setCompleted() { |
| 8250 | m_completed = true; |
| 8251 | } |
nothing calls this directly
no test coverage detected