Standard invariant check with panic on failure
(tree: &BPlusTreeMap<i32, String>, context: &str)
| 168 | |
| 169 | /// Standard invariant check with panic on failure |
| 170 | pub fn assert_invariants(tree: &BPlusTreeMap<i32, String>, context: &str) { |
| 171 | if let Err(e) = tree.check_invariants_detailed() { |
| 172 | panic!("Invariant violation in {}: {}", context, e); |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | /// Standard invariant check for integer trees |
| 177 | pub fn assert_invariants_int(tree: &BPlusTreeMap<i32, i32>, context: &str) { |
no test coverage detected