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

Function check_invariants

python/tests/test_stress_edge_cases.py:13–16  ·  view source on GitHub ↗

Helper function to check tree invariants

(tree: BPlusTreeMap)

Source from the content-addressed store, hash-verified

11
12
13def check_invariants(tree: BPlusTreeMap) -> bool:
14 """Helper function to check tree invariants"""
15 checker = BPlusTreeInvariantChecker(tree.capacity)
16 return checker.check_invariants(tree.root, tree.leaves)
17
18
19class TestStressEdgeCases:

Calls 2

check_invariantsMethod · 0.95

Tested by

no test coverage detected