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

◆ fail()

void fl::test::fail ( const char * msg,
const char * file,
int line,
bool isFatal )

Helper for FAIL macros.

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

479 {
480 AssertResult result(false);
481 result.mExpression = msg;
482 result.mLocation = SourceLocation(file, line);
484 if (isFatal) {
485 fl::printf(" FAIL (fatal): %s:%d: %s\n", file, line, msg);
486 } else {
487 fl::printf(" FAIL_CHECK: %s:%d: %s\n", file, line, msg);
488 }
489}
static TestContext & instance() FL_NO_EXCEPT
void reportAssert(const AssertResult &result) FL_NO_EXCEPT
void printf(const char *format) FL_NO_EXCEPT
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31

References fl::FL_NO_EXCEPT, fl::test::TestContext::instance(), fl::printf(), and fl::test::TestContext::reportAssert().

+ Here is the call graph for this function: