mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-22 19:33:29 +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;
|
||||
virtual void handleUnexpectedInflightException
|
||||
( AssertionInfo const& info,
|
||||
std::string const& message,
|
||||
std::string&& message,
|
||||
AssertionReaction& reaction ) = 0;
|
||||
virtual void handleIncomplete
|
||||
( AssertionInfo const& info ) = 0;
|
||||
|
@ -619,13 +619,13 @@ namespace Catch {
|
||||
|
||||
void RunContext::handleUnexpectedInflightException(
|
||||
AssertionInfo const& info,
|
||||
std::string const& message,
|
||||
std::string&& message,
|
||||
AssertionReaction& reaction
|
||||
) {
|
||||
m_lastAssertionInfo = info;
|
||||
|
||||
AssertionResultData data( ResultWas::ThrewException, LazyExpression( false ) );
|
||||
data.message = message;
|
||||
data.message = CATCH_MOVE(message);
|
||||
AssertionResult assertionResult{ info, CATCH_MOVE(data) };
|
||||
assertionEnded( assertionResult );
|
||||
populateReaction( reaction );
|
||||
|
@ -59,7 +59,7 @@ namespace Catch {
|
||||
AssertionReaction& reaction ) override;
|
||||
void handleUnexpectedInflightException
|
||||
( AssertionInfo const& info,
|
||||
std::string const& message,
|
||||
std::string&& message,
|
||||
AssertionReaction& reaction ) override;
|
||||
void handleIncomplete
|
||||
( AssertionInfo const& info ) override;
|
||||
|
Loading…
Reference in New Issue
Block a user