MCPcopy Create free account
hub / github.com/catchorg/Catch2 / handleNonExpr

Method handleNonExpr

extras/catch_amalgamated.cpp:6754–6773  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6752 }
6753
6754 void RunContext::handleNonExpr(
6755 AssertionInfo const &info,
6756 ResultWas::OfType resultType,
6757 AssertionReaction &reaction
6758 ) {
6759 AssertionResultData data( resultType, LazyExpression( false ) );
6760 AssertionResult assertionResult{ info, CATCH_MOVE( data ) };
6761
6762 const auto isOk = assertionResult.isOk();
6763 if ( isOk && !m_includeSuccessfulResults ) {
6764 assertionPassedFastPath( info.lineInfo );
6765 return;
6766 }
6767
6768 assertionEnded( CATCH_MOVE(assertionResult) );
6769 if ( !isOk ) {
6770 populateReaction(
6771 reaction, info.resultDisposition & ResultDisposition::Normal );
6772 }
6773 }
6774
6775 void seedRng(IConfig const& config) {
6776 sharedRng().seed(config.rngSeed());

Calls 2

LazyExpressionClass · 0.70
isOkMethod · 0.45

Tested by

no test coverage detected