MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / AssertionStats

Method AssertionStats

tests/catch.hpp:8737–8755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8735 {}
8736
8737 AssertionStats::AssertionStats( AssertionResult const& _assertionResult,
8738 std::vector<MessageInfo> const& _infoMessages,
8739 Totals const& _totals )
8740 : assertionResult( _assertionResult ),
8741 infoMessages( _infoMessages ),
8742 totals( _totals )
8743 {
8744 assertionResult.m_resultData.lazyExpression.m_transientExpression = _assertionResult.m_resultData.lazyExpression.m_transientExpression;
8745
8746 if( assertionResult.hasMessage() ) {
8747 // Copy message into messages list.
8748 // !TBD This should have been done earlier, somewhere
8749 MessageBuilder builder( assertionResult.getTestMacroName(), assertionResult.getSourceInfo(), assertionResult.getResultType() );
8750 builder << assertionResult.getMessage();
8751 builder.m_info.message = builder.m_stream.str();
8752
8753 infoMessages.push_back( builder.m_info );
8754 }
8755 }
8756
8757 AssertionStats::~AssertionStats() = default;
8758

Callers

nothing calls this directly

Calls 6

hasMessageMethod · 0.80
getTestMacroNameMethod · 0.80
getSourceInfoMethod · 0.80
getResultTypeMethod · 0.80
getMessageMethod · 0.80
strMethod · 0.80

Tested by

no test coverage detected