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

◆ assertResult()

void fl::test::SerialReporter::assertResult ( const AssertResult & result)
overridevirtual

Implements fl::test::IReporter.

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

580 {
581 if (!result.mPassed) {
582 fl::sstream ss;
583 ss << " FAIL: " << result.mLocation.mFile
584 << ":" << result.mLocation.mLine << "\n";
585 ss << " Expr: " << result.mExpression << "\n";
586 if (!result.mExpanded.empty()) {
587 ss << " Got: " << result.mExpanded << "\n";
588 }
589 print(ss.str().c_str());
590 }
591}
const char * c_str() const FL_NOEXCEPT
string str() const FL_NOEXCEPT
Definition strstream.h:43
void print(const char *msg) FL_NOEXCEPT
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31

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

+ Here is the call graph for this function: