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

Method hashCurrentPath

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

Source from the content-addressed store, hash-verified

416}
417
418fl::u32 TestContext::hashCurrentPath(const SubcaseSignature& sig) const FL_NOEXCEPT {
419 fl::u32 hash = 0;
420 for (fl::size i = 0; i < mSubcaseDiscoveryDepth && i < mSubcaseStack.size(); ++i) {
421 hash = hash * 31 + hashSubcaseSignature(mSubcaseStack[i]);
422 }
423 hash = hash * 31 + hashSubcaseSignature(sig);
424 return hash;
425}
426
427bool TestContext::isFullyTraversed(fl::u32 hash) const FL_NOEXCEPT {
428 for (fl::size i = 0; i < mFullyTraversedHashes.size(); ++i) {

Callers

nothing calls this directly

Calls 2

hashSubcaseSignatureFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected