| 8154 | } |
| 8155 | |
| 8156 | void AssertionHandler::complete() { |
| 8157 | setCompleted(); |
| 8158 | if( m_reaction.shouldDebugBreak ) { |
| 8159 | |
| 8160 | // If you find your debugger stopping you here then go one level up on the |
| 8161 | // call-stack for the code that caused it (typically a failed assertion) |
| 8162 | |
| 8163 | // (To go back to the test and change execution, jump over the throw, next) |
| 8164 | CATCH_BREAK_INTO_DEBUGGER(); |
| 8165 | } |
| 8166 | if (m_reaction.shouldThrow) { |
| 8167 | #if !defined(CATCH_CONFIG_DISABLE_EXCEPTIONS) |
| 8168 | throw Catch::TestFailureException(); |
| 8169 | #else |
| 8170 | CATCH_ERROR( "Test failure requires aborting test!" ); |
| 8171 | #endif |
| 8172 | } |
| 8173 | } |
| 8174 | void AssertionHandler::setCompleted() { |
| 8175 | m_completed = true; |
| 8176 | } |
nothing calls this directly
no test coverage detected