MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / handleNonExpr

Method handleNonExpr

unittests/catch.hpp:8938–8951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8936 assertionEnded( assertionResult );
8937 }
8938 void RunContext::handleNonExpr(
8939 AssertionInfo const &info,
8940 ResultWas::OfType resultType,
8941 AssertionReaction &reaction
8942 ) {
8943 m_lastAssertionInfo = info;
8944
8945 AssertionResultData data( resultType, LazyExpression( false ) );
8946 AssertionResult assertionResult{ info, data };
8947 assertionEnded( assertionResult );
8948
8949 if( !assertionResult.isOk() )
8950 populateReaction( reaction );
8951 }
8952
8953 IResultCapture& getResultCapture() {
8954 if (auto* capture = getCurrentContext().getResultCapture())

Calls 2

LazyExpressionClass · 0.85
isOkMethod · 0.80

Tested by

no test coverage detected