FastLED 3.9.15
Loading...
Searching...
No Matches

◆ print_test_result()

void simd_test::print_test_result ( const TestResult & result)

Print test result to serial.

Parameters
resultTest result to print

Definition at line 38 of file test_helpers.cpp.

38 {
39 fl::sstream ss;
40 if (result.passed) {
41 ss << " ✓ PASS: " << result.test_name;
42 FL_PRINT(ss.str());
43 } else {
44 ss << " ✗ FAIL: " << result.test_name;
45 FL_PRINT(ss.str());
46 if (result.error_msg) {
47 fl::sstream err;
48 err << " ERROR: " << result.error_msg;
49 FL_ERROR(err.str().c_str());
50 }
51 }
52}
const char * c_str() const FL_NOEXCEPT
string str() const FL_NOEXCEPT
Definition strstream.h:43
#define FL_ERROR(X)
Definition log.h:219
#define FL_PRINT(X)
Print without prefix (like FL_WARN but without "WARN: " prefix) Uses sstream for dynamic formatting (...
Definition log.h:457

References fl::basic_string::c_str(), FL_ERROR, FL_PRINT, and fl::sstream::str().

Referenced by run_test().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: