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

55 {
56 if (passed) {
57 if (durationMs > 0) {
58 fl::printf(" [PASSED] (%u ms)\n", durationMs);
59 } else {
60 fl::printf(" [PASSED]\n");
61 }
62 } else {
63 if (durationMs > 0) {
64 fl::printf(" [FAILED] (%u ms)\n", durationMs);
65 } else {
66 fl::printf(" [FAILED]\n");
67 }
68 }
69}
void printf(const char *format, const Args &... args) FL_NOEXCEPT
Printf-like formatting function that prints directly to the platform output.
Definition stdio.h:635

References FL_NOEXCEPT, and fl::printf().

+ Here is the call graph for this function: