Lines Matching refs:totals

5475         Totals totals;  member
5509 Totals totals; member
5528 Totals totals; member
5544 Totals totals; member
6134 void printTotals(Totals const& totals);
6137 void printTotalsDivider(Totals const& totals);
7987 …void testGroupEnded( std::string const& testSpec, Totals const& totals, std::size_t groupIndex, st…
10924 totals( _totals ) in AssertionStats()
10959 totals( _totals ), in TestCaseStats()
10971 totals( _totals ), in TestGroupStats()
10986 totals( _totals ), in TestRunStats()
12503 …void RunContext::testGroupEnded(std::string const& testSpec, Totals const& totals, std::size_t gro… in testGroupEnded() argument
12504 …->testGroupEnded(TestGroupStats(GroupInfo(testSpec, groupIndex, groupsCount), totals, aborting())); in testGroupEnded()
13115 Totals totals; in execute() local
13119 totals += m_context.runTest(*testCase); in execute()
13127 totals.error = -1; in execute()
13136 m_context.testGroupEnded(m_config->name(), totals, 1, 1); in execute()
13137 return totals; in execute()
13325 auto const totals = tests.execute(); in runInternal()
13327 if( m_config->warnAboutNoTests() && totals.error == -1 ) in runInternal()
13333 …return (std::min) (MaxExitCode, (std::max) (totals.error, static_cast<int>(totals.assertions.faile… in runInternal()
15517 void printTotals(std::ostream& out, const Totals& totals) { in printTotals() argument
15518 if (totals.testCases.total() == 0) { in printTotals()
15520 } else if (totals.testCases.failed == totals.testCases.total()) { in printTotals()
15523 totals.assertions.failed == totals.assertions.total() ? in printTotals()
15524 bothOrAll(totals.assertions.failed) : std::string(); in printTotals()
15526 "Failed " << bothOrAll(totals.testCases.failed) in printTotals()
15527 << pluralise(totals.testCases.failed, "test case") << ", " in printTotals()
15529 pluralise(totals.assertions.failed, "assertion") << '.'; in printTotals()
15530 } else if (totals.assertions.total() == 0) { in printTotals()
15532 "Passed " << bothOrAll(totals.testCases.total()) in printTotals()
15533 << pluralise(totals.testCases.total(), "test case") in printTotals()
15535 } else if (totals.assertions.failed) { in printTotals()
15538 "Failed " << pluralise(totals.testCases.failed, "test case") << ", " in printTotals()
15539 "failed " << pluralise(totals.assertions.failed, "assertion") << '.'; in printTotals()
15543 "Passed " << bothOrAll(totals.testCases.passed) in printTotals()
15544 << pluralise(totals.testCases.passed, "test case") << in printTotals()
15545 " with " << pluralise(totals.assertions.passed, "assertion") << '.'; in printTotals()
15759 printTotals( stream, _testRunStats.totals ); in testRunEnded()
15872 if (stats.totals.assertions.total() > 0) { in print()
16244 printTotals(_testGroupStats.totals); in testGroupEnded()
16250 printTotalsDivider(_testRunStats.totals); in testRunEnded()
16251 printTotals(_testRunStats.totals); in testRunEnded()
16366 void ConsoleReporter::printTotals( Totals const& totals ) { in printTotals() argument
16367 if (totals.testCases.total() == 0) { in printTotals()
16369 } else if (totals.assertions.total() > 0 && totals.testCases.allPassed()) { in printTotals()
16372 << pluralise(totals.assertions.passed, "assertion") << " in " in printTotals()
16373 << pluralise(totals.testCases.passed, "test case") << ')' in printTotals()
16379 .addRow(totals.testCases.total()) in printTotals()
16380 .addRow(totals.assertions.total())); in printTotals()
16382 .addRow(totals.testCases.passed) in printTotals()
16383 .addRow(totals.assertions.passed)); in printTotals()
16385 .addRow(totals.testCases.failed) in printTotals()
16386 .addRow(totals.assertions.failed)); in printTotals()
16388 .addRow(totals.testCases.failedButOk) in printTotals()
16389 .addRow(totals.assertions.failedButOk)); in printTotals()
16413 void ConsoleReporter::printTotalsDivider(Totals const& totals) { in printTotalsDivider() argument
16414 if (totals.testCases.total() > 0) { in printTotalsDivider()
16415 std::size_t failedRatio = makeRatio(totals.testCases.failed, totals.testCases.total()); in printTotalsDivider()
16416 … std::size_t failedButOkRatio = makeRatio(totals.testCases.failedButOk, totals.testCases.total()); in printTotalsDivider()
16417 std::size_t passedRatio = makeRatio(totals.testCases.passed, totals.testCases.total()); in printTotalsDivider()
16425 if (totals.testCases.allPassed()) in printTotalsDivider()
16562 xml.writeAttribute( "failures", stats.totals.assertions.failed-unexpectedExceptions ); in writeGroup()
16563 xml.writeAttribute( "tests", stats.totals.assertions.total() ); in writeGroup()
16692 if (stats.totals.assertions.total() > 0) { in writeAssertion()
17054 e.writeAttribute( "success", testCaseStats.totals.assertions.allOk() ); in testCaseEnded()
17071 .writeAttribute( "successes", testGroupStats.totals.assertions.passed ) in testGroupEnded()
17072 .writeAttribute( "failures", testGroupStats.totals.assertions.failed ) in testGroupEnded()
17073 .writeAttribute( "expectedFailures", testGroupStats.totals.assertions.failedButOk ); in testGroupEnded()
17080 .writeAttribute( "successes", testRunStats.totals.assertions.passed ) in testRunEnded()
17081 .writeAttribute( "failures", testRunStats.totals.assertions.failed ) in testRunEnded()
17082 .writeAttribute( "expectedFailures", testRunStats.totals.assertions.failedButOk ); in testRunEnded()