Set GCOVR exclusions for outside of implementation

This commit is contained in:
2024-05-06 17:14:09 -07:00
parent 32e68dad07
commit 744c3b91ea

View File

@@ -507,12 +507,27 @@ struct VersionedMap::Impl {
mm.gc(roots.roots(), roots.rootCount(), oldestVersion); mm.gc(roots.roots(), roots.rootCount(), oldestVersion);
} }
void printInOrder(int64_t version) { void printInOrder(int64_t version);
void printInOrderHelper(int64_t version, uint32_t node);
MemManager mm;
RootSet roots;
// Only meaningful within the callstack of `addMutations`
uint32_t latestRoot;
int64_t latestVersion = 0;
};
// ==================== END IMPLEMENTATION ====================
// GCOVR_EXCL_START
void VersionedMap::Impl::printInOrder(int64_t version) {
printInOrderHelper(version, printInOrderHelper(version,
roots.getThreadSafeHandle().rootForVersion(version)); roots.getThreadSafeHandle().rootForVersion(version));
} }
void printInOrderHelper(int64_t version, uint32_t node) { void VersionedMap::Impl::printInOrderHelper(int64_t version, uint32_t node) {
if (node == 0) { if (node == 0) {
return; return;
} }
@@ -529,16 +544,10 @@ struct VersionedMap::Impl {
printf(" <clearTo>"); printf(" <clearTo>");
} }
printf("\n"); printf("\n");
printInOrderHelper(version, VersionedMap::Impl::printInOrderHelper(
child<std::memory_order_relaxed>(node, true, version)); version, child<std::memory_order_relaxed>(node, true, version));
} }
MemManager mm;
RootSet roots;
// Only meaningful within the callstack of `addMutations`
uint32_t latestRoot;
int64_t latestVersion = 0;
};
} // namespace weaselab } // namespace weaselab
#ifdef ENABLE_MAIN #ifdef ENABLE_MAIN
@@ -632,3 +641,5 @@ int main() {
} }
} }
#endif #endif
// GCOVR_EXCL_STOP