FastLED 3.10.6
Loading...
Searching...
No Matches

◆ testRunEnd()

void fl::test::SerialReporter::testRunEnd ( const TestStats & stats)
overridevirtual

Implements fl::test::IReporter.

Definition at line 525 of file fltest.cpp.hpp.

525 {
526 print("\n====== FL TEST: Results ======\n");
527
528 // Format stats using snprintf-style approach
529 fl::sstream ss;
530 ss << "Passed: " << stats.mTestCasesPassed
531 << "/" << stats.mTestCasesRun << " tests\n";
532 print(ss.str().c_str());
533
534 if (stats.mTestCasesSkipped > 0) {
535 fl::sstream ss_skip;
536 ss_skip << "Skipped: " << stats.mTestCasesSkipped << "\n";
537 print(ss_skip.str().c_str());
538 }
539
540 if (stats.mAssertsFailed > 0) {
541 fl::sstream ss2;
542 ss2 << "Failed assertions: " << stats.mAssertsFailed << "\n";
543 print(ss2.str().c_str());
544 }
545
546 if (stats.allPassed()) {
547 print("Status: PASS\n");
548 } else {
549 print("Status: FAIL\n");
550 }
551}
const char * c_str() const FL_NO_EXCEPT
string str() const FL_NO_EXCEPT
Definition strstream.h:43
void print(const char *msg) FL_NO_EXCEPT

References fl::basic_string::c_str(), fl::FL_NO_EXCEPT, fl::print(), and fl::sstream::str().

+ Here is the call graph for this function: