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

◆ testCaseEnd()

void fl::test::DefaultReporter::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 56 of file fltest.cpp.hpp.

56 {
57 if (passed) {
58 if (durationMs > 0) {
59 fl::printf(" [PASSED] (%u ms)\n", durationMs);
60 } else {
61 fl::printf(" [PASSED]\n");
62 }
63 } else {
64 if (durationMs > 0) {
65 fl::printf(" [FAILED] (%u ms)\n", durationMs);
66 } else {
67 fl::printf(" [FAILED]\n");
68 }
69 }
70}
void printf(const char *format) FL_NO_EXCEPT

References fl::FL_NO_EXCEPT, and fl::printf().

+ Here is the call graph for this function: