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

Function assert_invariants_int

rust/tests/test_utils.rs:177–181  ·  view source on GitHub ↗

Standard invariant check for integer trees

(tree: &BPlusTreeMap<i32, i32>, context: &str)

Source from the content-addressed store, hash-verified

175
176/// Standard invariant check for integer trees
177pub fn assert_invariants_int(tree: &BPlusTreeMap<i32, i32>, context: &str) {
178 if let Err(e) = tree.check_invariants_detailed() {
179 panic!("Invariant violation in {}: {}", context, e);
180 }
181}
182
183/// Comprehensive tree validation including ordering
184pub fn assert_full_validation(tree: &BPlusTreeMap<i32, String>, context: &str) {

Calls 1

Tested by

no test coverage detected