FastLED 3.9.15
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 470 of file fltest.cpp.hpp.

470 {
471 AssertResult result(false);
472 result.mExpression = msg;
473 result.mLocation = SourceLocation(file, line);
475 if (isFatal) {
476 fl::printf(" FAIL (fatal): %s:%d: %s\n", file, line, msg);
477 } else {
478 fl::printf(" FAIL_CHECK: %s:%d: %s\n", file, line, msg);
479 }
480}
static TestContext & instance() FL_NOEXCEPT
void reportAssert(const AssertResult &result) FL_NOEXCEPT
void printf(const char *format, const Args &... args) FL_NOEXCEPT
Printf-like formatting function that prints directly to the platform output.
Definition stdio.h:635
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31

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

+ Here is the call graph for this function: