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