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

◆ assertResult()

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

Implements fl::test::IReporter.

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

589 {
590 if (!result.mPassed) {
591 fl::sstream ss;
592 ss << " FAIL: " << result.mLocation.mFile
593 << ":" << result.mLocation.mLine << "\n";
594 ss << " Expr: " << result.mExpression << "\n";
595 if (!result.mExpanded.empty()) {
596 ss << " Got: " << result.mExpanded << "\n";
597 }
598 print(ss.str().c_str());
599 }
600}
const char * c_str() const FL_NO_EXCEPT
string str() const FL_NO_EXCEPT
Definition strstream.h:43
void print(const char *msg) FL_NO_EXCEPT
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31

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

+ Here is the call graph for this function: