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

◆ assertResult()

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

Implements fl::test::IReporter.

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

934 {
935 if (!result.mPassed) {
936 mCurrentTestPassed = false;
937
938 fl::sstream ss;
939 ss << " Failed at " << result.mLocation.mFile << ":" << result.mLocation.mLine;
940 mDiagnostics.push_back(ss.str());
941
942 fl::sstream ss2;
943 ss2 << " Expression: " << result.mExpression;
944 mDiagnostics.push_back(ss2.str());
945
946 if (!result.mExpanded.empty()) {
947 fl::sstream ss3;
948 ss3 << " Expanded: " << result.mExpanded;
949 mDiagnostics.push_back(ss3.str());
950 }
951 }
952}
string str() const FL_NO_EXCEPT
Definition strstream.h:43
fl::vector< fl::string > mDiagnostics
Definition fltest.h:678
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31

References fl::FL_NO_EXCEPT, mCurrentTestPassed, mDiagnostics, and fl::sstream::str().

+ Here is the call graph for this function: