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

Function check_invariants

python/tests/test_fuzz_discovered_patterns.py:19–22  ·  view source on GitHub ↗

Helper function to check tree invariants

(tree: BPlusTreeMap)

Source from the content-addressed store, hash-verified

17
18
19def check_invariants(tree: BPlusTreeMap) -> bool:
20 """Helper function to check tree invariants"""
21 checker = BPlusTreeInvariantChecker(tree.capacity)
22 return checker.check_invariants(tree.root, tree.leaves)
23
24
25class TestFuzzDiscoveredPatterns:

Calls 2

check_invariantsMethod · 0.95

Tested by

no test coverage detected