Function complete

Synopsis

#include <include/internal/catch_assertionhandler.h>

void complete()

Description

No description yet.

Source

Lines 75-92 in include/internal/catch_assertionhandler.cpp. Line 77 in include/internal/catch_assertionhandler.h.

void AssertionHandler::complete() {
    setCompleted();
    if( m_reaction.shouldDebugBreak ) {
        // If you find your debugger stopping you here then go one level up on the
        // call-stack for the code that caused it (typically a failed assertion)
        // (To go back to the test and change execution, jump over the throw, next)
        CATCH_BREAK_INTO_DEBUGGER();
    }
    if (m_reaction.shouldThrow) {
!defined(CATCH_CONFIG_DISABLE_EXCEPTIONS)
        throw Catch::TestFailureException();
e
        CATCH_ERROR( "Test failure requires aborting test!" );
if
    }
}





Add Discussion as Guest

Log in