MCPcopy Create free account
hub / github.com/KentBeck/BPlusTree3 / check_invariants

Function check_invariants

python/tests/fuzz_test.py:27–30  ·  view source on GitHub ↗

Helper function to check tree invariants

(tree: BPlusTreeMap)

Source from the content-addressed store, hash-verified

25
26
27def check_invariants(tree: BPlusTreeMap) -> bool:
28 """Helper function to check tree invariants"""
29 checker = BPlusTreeInvariantChecker(tree.capacity)
30 return checker.check_invariants(tree.root, tree.leaves)
31
32
33class BPlusTreeFuzzTester:

Callers 1

verify_consistencyMethod · 0.70

Calls 2

check_invariantsMethod · 0.95

Tested by

no test coverage detected