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

Method exitSubcase

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

Source from the content-addressed store, hash-verified

377}
378
379void TestContext::exitSubcase(const SubcaseSignature& sig) FL_NOEXCEPT {
380 mCurrentSubcaseDepth--;
381 mSubcaseDiscoveryDepth--;
382
383 // If we don't have a next path queued, we might need to reenter
384 // to explore sibling subcases
385 if (mNextSubcaseStack.empty() && mSubcaseDiscoveryDepth < mSubcaseStack.size()) {
386 // Mark this path as traversed
387 markFullyTraversed(hashCurrentPath(sig));
388 } else if (mNextSubcaseStack.size() > 0) {
389 // We have more paths to explore
390 mShouldReenter = true;
391 }
392
393 mReporter->subcaseEnd();
394}
395
396void TestContext::reportAssert(const AssertResult& result) FL_NOEXCEPT {
397 if (result.mPassed) {

Callers 1

fltest.cpp.hppFile · 0.80

Calls 3

subcaseEndMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected