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

Function test_attack_patterns

rust/tests/test_utils.rs:536–543  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

534
535 #[test]
536 fn test_attack_patterns() {
537 let mut tree = create_tree_4_with_data(50);
538
539 // Test deletion range attack
540 deletion_range_attack(&mut tree, 10, 40);
541 assert_eq!(tree.len(), 20);
542 assert_full_validation(&tree, "deletion range attack");
543 }
544}

Callers

nothing calls this directly

Calls 3

create_tree_4_with_dataFunction · 0.85
deletion_range_attackFunction · 0.85
assert_full_validationFunction · 0.85

Tested by

no test coverage detected