Lines Matching refs:ResultWas
774 struct ResultWas { enum OfType { argument
794 inline bool isOk( ResultWas::OfType resultType ) { in isOk()
795 return ( resultType & ResultWas::FailureBit ) == 0; in isOk()
798 return flags == ResultWas::Info; in isJustInfo()
843 AssertionResultData() : resultType( ResultWas::Unknown ) {} in AssertionResultData()
847 ResultWas::OfType resultType;
864 ResultWas::OfType getResultType() const;
1241 ResultBuilder& setResultType( ResultWas::OfType result );
1253 void captureResult( ResultWas::OfType resultType );
1903 ResultWas::OfType _type );
1907 ResultWas::OfType type;
1924 ResultWas::OfType type ) in MessageBuilder()
2086 __catchResult.captureResult( Catch::ResultWas::Ok ); \
2101 __catchResult.captureResult( Catch::ResultWas::DidntThrowException ); \
2107 __catchResult.captureResult( Catch::ResultWas::Ok ); \
2118 __catchResult.captureResult( Catch::ResultWas::DidntThrowException ); \
2121 __catchResult.captureResult( Catch::ResultWas::Ok ); \
2127 __catchResult.captureResult( Catch::ResultWas::Ok ); \
2152 …age ) = Catch::MessageBuilder( macroName, CATCH_INTERNAL_LINEINFO, Catch::ResultWas::Info ) << log;
5938 if( result.getResultType() == ResultWas::Ok ) { in assertionEnded()
6029 resultBuilder.setResultType( ResultWas::FatalErrorCondition ); in handleFatalErrorCondition()
7252 ResultWas::OfType AssertionResult::getResultType() const { in getResultType()
7526 ResultWas::OfType _type ) in MessageInfo()
7638 if( assertionStats.assertionResult.getResultType() != ResultWas::Ok ) { in assertionEnded()
7642 if( it->type == ResultWas::Info ) { in assertionEnded()
7645 rb.setResultType( ResultWas::Info ); in assertionEnded()
8171 ResultBuilder& ResultBuilder::setResultType( ResultWas::OfType result ) { in setResultType()
8176 m_data.resultType = result ? ResultWas::Ok : ResultWas::ExpressionFailed; in setResultType()
8200 captureResult( ResultWas::ThrewException ); in useActiveException()
8203 void ResultBuilder::captureResult( ResultWas::OfType resultType ) { in captureResult()
8218 data.resultType = ResultWas::Ok; in captureExpectedException()
8223 data.resultType = ResultWas::ExpressionFailed; in captureExpectedException()
8255 assert( m_data.resultType != ResultWas::Unknown ); in build()
8261 if( data.resultType == ResultWas::Ok ) in build()
8262 data.resultType = ResultWas::ExpressionFailed; in build()
8263 else if( data.resultType == ResultWas::ExpressionFailed ) in build()
8264 data.resultType = ResultWas::Ok; in build()
9141 if( assertionStats.assertionResult.getResultType() != ResultWas::Ok ) { in assertionEnded()
9145 if( it->type == ResultWas::Info ) { in assertionEnded()
9148 } else if ( it->type == ResultWas::Warning ) { in assertionEnded()
9175 case ResultWas::ThrewException: in assertionEnded()
9181 case ResultWas::FatalErrorCondition: in assertionEnded()
9187 case ResultWas::Info: in assertionEnded()
9191 case ResultWas::Warning: in assertionEnded()
9194 case ResultWas::ExplicitFailure: in assertionEnded()
9301 if( assertionStats.assertionResult.getResultType() == ResultWas::ThrewException ) in assertionEnded()
9415 case ResultWas::ThrewException: in writeAssertion()
9416 case ResultWas::FatalErrorCondition: in writeAssertion()
9419 case ResultWas::ExplicitFailure: in writeAssertion()
9422 case ResultWas::ExpressionFailed: in writeAssertion()
9425 case ResultWas::DidntThrowException: in writeAssertion()
9430 case ResultWas::Info: in writeAssertion()
9431 case ResultWas::Warning: in writeAssertion()
9432 case ResultWas::Ok: in writeAssertion()
9433 case ResultWas::Unknown: in writeAssertion()
9434 case ResultWas::FailureBit: in writeAssertion()
9435 case ResultWas::Exception: in writeAssertion()
9453 if( it->type == ResultWas::Info ) in writeAssertion()
9502 if( result.getResultType() != ResultWas::Warning ) in assertionEnded()
9576 case ResultWas::Ok: in AssertionPrinter()
9585 case ResultWas::ExpressionFailed: in AssertionPrinter()
9599 case ResultWas::ThrewException: in AssertionPrinter()
9604 case ResultWas::FatalErrorCondition: in AssertionPrinter()
9609 case ResultWas::DidntThrowException: in AssertionPrinter()
9614 case ResultWas::Info: in AssertionPrinter()
9617 case ResultWas::Warning: in AssertionPrinter()
9620 case ResultWas::ExplicitFailure: in AssertionPrinter()
9629 case ResultWas::Unknown: in AssertionPrinter()
9630 case ResultWas::FailureBit: in AssertionPrinter()
9631 case ResultWas::Exception: in AssertionPrinter()
9682 if( printInfoMessages || it->type != ResultWas::Info ) in printMessage()
9941 if( result.getResultType() != ResultWas::Warning ) in assertionEnded()
9978 case ResultWas::Ok: in print()
9987 case ResultWas::ExpressionFailed: in print()
9996 case ResultWas::ThrewException: in print()
10003 case ResultWas::FatalErrorCondition: in print()
10010 case ResultWas::DidntThrowException: in print()
10016 case ResultWas::Info: in print()
10021 case ResultWas::Warning: in print()
10026 case ResultWas::ExplicitFailure: in print()
10032 case ResultWas::Unknown: in print()
10033 case ResultWas::FailureBit: in print()
10034 case ResultWas::Exception: in print()
10121 if( printInfoMessages || itMessage->type != ResultWas::Info ) { in printRemainingMessages()
10326 #define CATCH_WARN( msg ) INTERNAL_CATCH_MSG( Catch::ResultWas::Warning, Catch::ResultDisposition::…
10337 …#define CATCH_FAIL( ... ) INTERNAL_CATCH_MSG( Catch::ResultWas::ExplicitFailure, Catch::ResultDisp…
10338 …#define CATCH_SUCCEED( ... ) INTERNAL_CATCH_MSG( Catch::ResultWas::Ok, Catch::ResultDisposition::C…
10345 …#define CATCH_FAIL( msg ) INTERNAL_CATCH_MSG( Catch::ResultWas::ExplicitFailure, Catch::ResultDisp…
10346 …#define CATCH_SUCCEED( msg ) INTERNAL_CATCH_MSG( Catch::ResultWas::Ok, Catch::ResultDisposition::C…
10395 #define WARN( msg ) INTERNAL_CATCH_MSG( Catch::ResultWas::Warning, Catch::ResultDisposition::Contin…
10406 …#define FAIL( ... ) INTERNAL_CATCH_MSG( Catch::ResultWas::ExplicitFailure, Catch::ResultDispositio…
10407 …#define SUCCEED( ... ) INTERNAL_CATCH_MSG( Catch::ResultWas::Ok, Catch::ResultDisposition::Continu…
10414 …#define FAIL( msg ) INTERNAL_CATCH_MSG( Catch::ResultWas::ExplicitFailure, Catch::ResultDispositio…
10415 …#define SUCCEED( msg ) INTERNAL_CATCH_MSG( Catch::ResultWas::Ok, Catch::ResultDisposition::Continu…