MCPcopy Create free account
hub / github.com/FastLED/FastLED / fail

Function fail

src/fl/test/fltest.cpp.hpp:470–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

468}
469
470void fail(const char* msg, const char* file, int line, bool isFatal) FL_NOEXCEPT {
471 AssertResult result(false);
472 result.mExpression = msg;
473 result.mLocation = SourceLocation(file, line);
474 TestContext::instance().reportAssert(result);
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}
481
482// =============================================================================
483// Skip test support functions

Callers 1

ieee754_parse_decimalFunction · 0.85

Calls 3

SourceLocationClass · 0.85
printfFunction · 0.85
reportAssertMethod · 0.80

Tested by

no test coverage detected