MCPcopy Create free account
hub / github.com/apache/thrift / assertionEnded

Method assertionEnded

compiler/cpp/tests/catch/catch.hpp:10963–10980  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10961 virtual void assertionStarting( AssertionInfo const& ) {}
10962
10963 virtual bool assertionEnded( AssertionStats const& _assertionStats ) {
10964 AssertionResult const& result = _assertionStats.assertionResult;
10965
10966 bool printInfoMessages = true;
10967
10968 // Drop out if result was successful and we're not printing those
10969 if( !m_config->includeSuccessfulResults() && result.isOk() ) {
10970 if( result.getResultType() != ResultWas::Warning )
10971 return false;
10972 printInfoMessages = false;
10973 }
10974
10975 AssertionPrinter printer( stream, _assertionStats, printInfoMessages );
10976 printer.print();
10977
10978 stream << std::endl;
10979 return true;
10980 }
10981
10982 virtual void sectionEnded(SectionStats const& _sectionStats) CATCH_OVERRIDE {
10983 if (m_config->showDurations() == ShowDurations::Always) {

Callers

nothing calls this directly

Calls 4

isOkMethod · 0.80
getResultTypeMethod · 0.80
printMethod · 0.45

Tested by

no test coverage detected