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

Method assertResult

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

Source from the content-addressed store, hash-verified

77}
78
79void DefaultReporter::assertResult(const AssertResult& result) FL_NOEXCEPT {
80 if (!result.mPassed) {
81 fl::printf(" FAILED: %s:%d\n", result.mLocation.mFile, result.mLocation.mLine);
82 fl::printf(" Expression: %s\n", result.mExpression.c_str());
83 if (!result.mExpanded.empty()) {
84 fl::printf(" Expanded: %s\n", result.mExpanded.c_str());
85 }
86 }
87}
88
89// =============================================================================
90// TestContext implementation

Callers 1

reportAssertMethod · 0.80

Calls 6

printfFunction · 0.85
printFunction · 0.50
c_strMethod · 0.45
emptyMethod · 0.45
strMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected