Function handleMessage

Synopsis

#include <include/internal/catch_run_context.h>

void handleMessage(AssertionInfo const &info, ResultWas::OfType resultType, StringRef const &message, AssertionReaction &reaction) override

Description

No description yet.

Source

Lines 469-485 in include/internal/catch_run_context.cpp. Line 59 in include/internal/catch_run_context.h.

void RunContext::handleMessage(
        AssertionInfo const& info,
        ResultWas::OfType resultType,
        StringRef const& message,
        AssertionReaction& reaction
) {
    m_reporter->assertionStarting( info );
    m_lastAssertionInfo = info;
    AssertionResultData data( resultType, LazyExpression( false ) );
    data.message = static_cast<std::string>(message);
    AssertionResult assertionResult{ m_lastAssertionInfo, data };
    assertionEnded( assertionResult );
    if( !assertionResult.isOk() )
        populateReaction( reaction );
}





Add Discussion as Guest

Log in