mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-04 05:09:53 +01:00
Performance improvement
Begin to address #1086 Brings test from 2m51.072s to 1m15.661s
This commit is contained in:
parent
61e29b5630
commit
b9339333df
@ -72,6 +72,13 @@ namespace Catch {
|
|||||||
bool negated = isFalseTest( m_assertionInfo.resultDisposition );
|
bool negated = isFalseTest( m_assertionInfo.resultDisposition );
|
||||||
bool result = expr.getResult() != negated;
|
bool result = expr.getResult() != negated;
|
||||||
|
|
||||||
|
if(result && !getCurrentContext().getConfig()->includeSuccessfulResults())
|
||||||
|
{
|
||||||
|
getCurrentContext().getResultCapture()->assertionRun();
|
||||||
|
getCurrentContext().getResultCapture()->assertionPassed();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
handle( result ? ResultWas::Ok : ResultWas::ExpressionFailed, &expr, negated );
|
handle( result ? ResultWas::Ok : ResultWas::ExpressionFailed, &expr, negated );
|
||||||
}
|
}
|
||||||
void AssertionHandler::handle( ResultWas::OfType resultType ) {
|
void AssertionHandler::handle( ResultWas::OfType resultType ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user