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

Method reportAssert

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

Source from the content-addressed store, hash-verified

394}
395
396void TestContext::reportAssert(const AssertResult& result) FL_NOEXCEPT {
397 if (result.mPassed) {
398 mStats.mAssertsPassed++;
399 } else {
400 mStats.mAssertsFailed++;
401 mCurrentTestFailed = true;
402 }
403 mReporter->assertResult(result);
404}
405
406void TestContext::checkFailed(const char* expr, const char* file, int line) FL_NOEXCEPT {
407 AssertResult result(false);

Callers 2

binaryAssertFunction · 0.80
failFunction · 0.80

Calls 1

assertResultMethod · 0.80

Tested by

no test coverage detected