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

Function check_invariants

python/tests/test_max_occupancy_bug.py:8–11  ·  view source on GitHub ↗

Helper function to check tree invariants

(tree: BPlusTreeMap)

Source from the content-addressed store, hash-verified

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

Calls 2

check_invariantsMethod · 0.95

Tested by

no test coverage detected