FastLED 3.9.15
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 550 of file fltest.cpp.hpp.

550 {
551 if (passed) {
552 if (durationMs > 0) {
553 fl::sstream ss;
554 ss << "[PASS] (" << durationMs << " ms)\n";
555 print(ss.str().c_str());
556 } else {
557 print("[PASS]\n");
558 }
559 } else {
560 if (durationMs > 0) {
561 fl::sstream ss;
562 ss << "[FAIL] (" << durationMs << " ms)\n";
563 print(ss.str().c_str());
564 } else {
565 print("[FAIL]\n");
566 }
567 }
568}
const char * c_str() const FL_NOEXCEPT
string str() const FL_NOEXCEPT
Definition strstream.h:43
void print(const char *msg) FL_NOEXCEPT

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

+ Here is the call graph for this function: