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

◆ assertResult()

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

Implements fl::test::IReporter.

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

925 {
926 if (!result.mPassed) {
927 mCurrentTestPassed = false;
928
929 fl::sstream ss;
930 ss << " Failed at " << result.mLocation.mFile << ":" << result.mLocation.mLine;
931 mDiagnostics.push_back(ss.str());
932
933 fl::sstream ss2;
934 ss2 << " Expression: " << result.mExpression;
935 mDiagnostics.push_back(ss2.str());
936
937 if (!result.mExpanded.empty()) {
938 fl::sstream ss3;
939 ss3 << " Expanded: " << result.mExpanded;
940 mDiagnostics.push_back(ss3.str());
941 }
942 }
943}
string str() const FL_NOEXCEPT
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_NOEXCEPT, mCurrentTestPassed, mDiagnostics, and fl::sstream::str().

+ Here is the call graph for this function: