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

Function check_invariants

python/tests/test_proper_deletion.py:10–13  ·  view source on GitHub ↗

Helper function to check tree invariants

(tree: BPlusTreeMap)

Source from the content-addressed store, hash-verified

8
9
10def check_invariants(tree: BPlusTreeMap) -> bool:
11 """Helper function to check tree invariants"""
12 checker = BPlusTreeInvariantChecker(tree.capacity)
13 return checker.check_invariants(tree.root, tree.leaves)
14
15
16def test_deletion_maintains_invariants():

Calls 2

check_invariantsMethod · 0.95

Tested by

no test coverage detected