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

Method validate_for_operation

rust/src/validation.rs:365–372  ·  view source on GitHub ↗

Check if tree is in a valid state for operations

(&self, operation: &str)

Source from the content-addressed store, hash-verified

363
364 /// Check if tree is in a valid state for operations
365 pub fn validate_for_operation(&self, operation: &str) -> crate::error::BTreeResult<()> {
366 self.check_invariants_detailed().map_err(|e| {
367 BPlusTreeError::data_integrity(
368 operation,
369 &format!("Validation for {}: {}", operation, e),
370 )
371 })
372 }
373}

Callers 3

test_result_type_aliasesFunction · 0.80

Calls 1

Tested by 3

test_result_type_aliasesFunction · 0.64