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

◆ testCaseEnd()

void fl::test::SerialReporter::testCaseEnd ( bool passed,
fl::u32 durationMs = 0 )
overridevirtual

Called when a test case ends.

Parameters
passedWhether the test passed
durationMsDuration of the test in milliseconds (0 if no timer available)

Implements fl::test::IReporter.

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

559 {
560 if (passed) {
561 if (durationMs > 0) {
562 fl::sstream ss;
563 ss << "[PASS] (" << durationMs << " ms)\n";
564 print(ss.str().c_str());
565 } else {
566 print("[PASS]\n");
567 }
568 } else {
569 if (durationMs > 0) {
570 fl::sstream ss;
571 ss << "[FAIL] (" << durationMs << " ms)\n";
572 print(ss.str().c_str());
573 } else {
574 print("[FAIL]\n");
575 }
576 }
577}
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: