mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
Move exception's translation into AssertionResultData message
This commit is contained in:
parent
3220ae6d4a
commit
13fae1e2ff
@ -84,7 +84,7 @@ namespace Catch {
|
|||||||
AssertionReaction& reaction ) = 0;
|
AssertionReaction& reaction ) = 0;
|
||||||
virtual void handleUnexpectedInflightException
|
virtual void handleUnexpectedInflightException
|
||||||
( AssertionInfo const& info,
|
( AssertionInfo const& info,
|
||||||
std::string const& message,
|
std::string&& message,
|
||||||
AssertionReaction& reaction ) = 0;
|
AssertionReaction& reaction ) = 0;
|
||||||
virtual void handleIncomplete
|
virtual void handleIncomplete
|
||||||
( AssertionInfo const& info ) = 0;
|
( AssertionInfo const& info ) = 0;
|
||||||
|
@ -619,13 +619,13 @@ namespace Catch {
|
|||||||
|
|
||||||
void RunContext::handleUnexpectedInflightException(
|
void RunContext::handleUnexpectedInflightException(
|
||||||
AssertionInfo const& info,
|
AssertionInfo const& info,
|
||||||
std::string const& message,
|
std::string&& message,
|
||||||
AssertionReaction& reaction
|
AssertionReaction& reaction
|
||||||
) {
|
) {
|
||||||
m_lastAssertionInfo = info;
|
m_lastAssertionInfo = info;
|
||||||
|
|
||||||
AssertionResultData data( ResultWas::ThrewException, LazyExpression( false ) );
|
AssertionResultData data( ResultWas::ThrewException, LazyExpression( false ) );
|
||||||
data.message = message;
|
data.message = CATCH_MOVE(message);
|
||||||
AssertionResult assertionResult{ info, CATCH_MOVE(data) };
|
AssertionResult assertionResult{ info, CATCH_MOVE(data) };
|
||||||
assertionEnded( assertionResult );
|
assertionEnded( assertionResult );
|
||||||
populateReaction( reaction );
|
populateReaction( reaction );
|
||||||
|
@ -59,7 +59,7 @@ namespace Catch {
|
|||||||
AssertionReaction& reaction ) override;
|
AssertionReaction& reaction ) override;
|
||||||
void handleUnexpectedInflightException
|
void handleUnexpectedInflightException
|
||||||
( AssertionInfo const& info,
|
( AssertionInfo const& info,
|
||||||
std::string const& message,
|
std::string&& message,
|
||||||
AssertionReaction& reaction ) override;
|
AssertionReaction& reaction ) override;
|
||||||
void handleIncomplete
|
void handleIncomplete
|
||||||
( AssertionInfo const& info ) override;
|
( AssertionInfo const& info ) override;
|
||||||
|
Loading…
Reference in New Issue
Block a user