Lines Matching refs:assertions

2246             "chained comparisons are not supported inside assertions, "
2253 "chained comparisons are not supported inside assertions, "
2260 "chained comparisons are not supported inside assertions, "
2267 "chained comparisons are not supported inside assertions, "
2274 "chained comparisons are not supported inside assertions, "
2281 "chained comparisons are not supported inside assertions, "
2288 "chained comparisons are not supported inside assertions, "
2295 "chained comparisons are not supported inside assertions, "
2392 "operator&& is not supported inside assertions, "
2399 "operator|| is not supported inside assertions, "
2464 Counts& assertions ) = 0;
2851 Counts assertions;
5556 Counts assertions;
5834 Assertions assertions;
5915 sectionNode.assertions.push_back(assertionStats);
8106 bool sectionStarted( SectionInfo const& sectionInfo, Counts& assertions ) override;
8147 bool testForMissingAssertions( Counts& assertions );
11120 assertions( _assertions ),
12767 deltaTotals.assertions.failed++;
12794 m_totals.assertions.passed++;
12799 m_totals.assertions.failedButOk++;
12801 m_totals.assertions.failed++;
12823 bool RunContext::sectionStarted(SectionInfo const & sectionInfo, Counts & assertions) {
12833 assertions = m_totals.assertions;
12845 bool RunContext::testForMissingAssertions(Counts& assertions) {
12846 if (assertions.total() != 0)
12852 m_totals.assertions.failed++;
12853 assertions.failed++;
12858 Counts assertions = m_totals.assertions - endInfo.prevAssertions;
12859 bool missingAssertions = testForMissingAssertions(assertions);
12866 m_reporter->sectionEnded(SectionStats(endInfo.sectionInfo, assertions, endInfo.durationInSeconds, missingAssertions));
12940 Counts assertions;
12941 assertions.failed = 1;
12942 SectionStats testCaseSectionStats(testCaseSection, assertions, 0, false);
12949 deltaTotals.assertions.failed = 1;
12966 ++m_totals.assertions.passed;
12972 return m_totals.assertions.failed >= static_cast<std::size_t>(m_config->abortAfter());
12979 Counts prevAssertions = m_totals.assertions;
13007 // Under CATCH_CONFIG_FAST_COMPILE, unexpected exceptions under REQUIRE assertions
13014 Counts assertions = m_totals.assertions - prevAssertions;
13015 bool missingAssertions = testForMissingAssertions(assertions);
13022 SectionStats testCaseSectionStats(testCaseSection, assertions, duration, missingAssertions);
13573 return (std::min) (MaxExitCode, (std::max) (totals.error, static_cast<int>(totals.assertions.failed)));
15288 diff.assertions = assertions - other.assertions;
15294 assertions += other.assertions;
15301 if( diff.assertions.failed > 0 )
15303 else if( diff.assertions.failedButOk > 0 )
15864 // - red: Failed [both/all] N test cases, failed [both/all] M assertions.
15865 // - white: Passed [both/all] N test cases (no assertions).
15866 // - red: Failed N tests cases, failed M assertions.
15867 // - green: Passed [both/all] N tests cases with M assertions.
15874 totals.assertions.failed == totals.assertions.total() ?
15875 bothOrAll(totals.assertions.failed) : std::string();
15880 pluralise(totals.assertions.failed, "assertion") << '.';
15881 } else if (totals.assertions.total() == 0) {
15885 << " (no assertions).";
15886 } else if (totals.assertions.failed) {
15890 "failed " << pluralise(totals.assertions.failed, "assertion") << '.';
15896 " with " << pluralise(totals.assertions.passed, "assertion") << '.';
16220 if (stats.totals.assertions.total() > 0) {
16517 stream << "\nNo assertions in section";
16519 stream << "\nNo assertions in test case";
16714 } else if (totals.assertions.total() > 0 && totals.testCases.allPassed()) {
16717 << pluralise(totals.assertions.passed, "assertion") << " in "
16725 .addRow(totals.assertions.total()));
16728 .addRow(totals.assertions.passed));
16731 .addRow(totals.assertions.failed));
16734 .addRow(totals.assertions.failedButOk));
16737 printSummaryRow("assertions", columns, 1);
16921 xml.writeAttribute( "failures", stats.totals.assertions.failed-unexpectedExceptions );
16922 xml.writeAttribute( "tests", stats.totals.assertions.total() );
16983 if( !sectionNode.assertions.empty() ||
17002 if (sectionNode.stats.assertions.failedButOk) {
17022 for( auto const& assertion : sectionNode.assertions )
17058 if (stats.totals.assertions.total() > 0) {
17095 // We will assume that listeners will always want all assertions
17406 e.writeAttribute( "successes", sectionStats.assertions.passed );
17407 e.writeAttribute( "failures", sectionStats.assertions.failed );
17408 e.writeAttribute( "expectedFailures", sectionStats.assertions.failedButOk );
17420 e.writeAttribute( "success", testCaseStats.totals.assertions.allOk() );
17437 .writeAttribute( "successes", testGroupStats.totals.assertions.passed )
17438 .writeAttribute( "failures", testGroupStats.totals.assertions.failed )
17439 .writeAttribute( "expectedFailures", testGroupStats.totals.assertions.failedButOk );
17450 .writeAttribute( "successes", testRunStats.totals.assertions.passed )
17451 .writeAttribute( "failures", testRunStats.totals.assertions.failed )
17452 .writeAttribute( "expectedFailures", testRunStats.totals.assertions.failedButOk );