Function AssertionStats

Summary

#include <include/internal/catch_interfaces_reporter.h>

(1) AssertionStats(AssertionResult const &_assertionResult, std::vector< MessageInfo > const &_infoMessages, Totals const &_totals)

(2) AssertionStats(AssertionStats const &)=default

(3) AssertionStats(AssertionStats &&)=default

Function overload

Synopsis

#include <include/internal/catch_interfaces_reporter.h>

AssertionStats(AssertionResult const &_assertionResult, std::vector< MessageInfo > const &_infoMessages, Totals const &_totals)

Description

No description yet.

Source

Lines 33-51 in include/internal/catch_interfaces_reporter.cpp. Line 83 in include/internal/catch_interfaces_reporter.h.

AssertionStats::AssertionStats( AssertionResult const& _assertionResult,
                                std::vector<MessageInfo> const& _infoMessages,
                                Totals const& _totals )
   assertionResult( _assertionResult ),
   infoMessages( _infoMessages ),
   totals( _totals )

   assertionResult.m_resultData.lazyExpression.m_transientExpression = _assertionResult.m_resultData.lazyExpression.m_transientExpression;
   if( assertionResult.hasMessage() ) {
       // Copy message into messages list.
       // !TBD This should have been done earlier, somewhere
       MessageBuilder builder( assertionResult.getTestMacroName(), assertionResult.getSourceInfo(), assertionResult.getResultType() );
       builder << assertionResult.getMessage();
       builder.m_info.message = builder.m_stream.str();
       infoMessages.push_back( builder.m_info );
   }

Synopsis

#include <include/internal/catch_interfaces_reporter.h>

AssertionStats(AssertionStats const &)=default

Description

No description yet.

Source

Line 87 in include/internal/catch_interfaces_reporter.h.

Synopsis

#include <include/internal/catch_interfaces_reporter.h>

AssertionStats(AssertionStats &&)=default

Description

No description yet.

Source

Line 88 in include/internal/catch_interfaces_reporter.h.






Add Discussion as Guest

Log in