MCPcopy Create free account
hub / github.com/pybind/pybind11 / testRunEnded

Method testRunEnded

tests/test_with_catch/catch.cpp:73–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 bool assertionEnded(Catch::AssertionStats const &) override { return false; }
72
73 void testRunEnded(Catch::TestRunStats const &stats) override {
74 auto &os = Catch::cout();
75 auto passed = stats.totals.testCases.passed;
76 auto failed = stats.totals.testCases.failed;
77 auto total = passed + failed;
78 auto assertions = stats.totals.assertions.passed + stats.totals.assertions.failed;
79 if (failed == 0) {
80 os << "[ PASSED ] " << total << " test cases, " << assertions << " assertions.\n";
81 } else {
82 os << "[ FAILED ] " << failed << " of " << total << " test cases, " << assertions
83 << " assertions.\n";
84 }
85 os.flush();
86 }
87
88private:
89 void print_python_version_once() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected