()
| 642 | |
| 643 | #[test] |
| 644 | fn test_clear() { |
| 645 | let store = MemoryChangeStore::new(); |
| 646 | |
| 647 | for i in 0..5 { |
| 648 | let change = create_test_change(&format!("Change {}", i), &[i as u8]); |
| 649 | store.insert_change(change).unwrap(); |
| 650 | } |
| 651 | |
| 652 | assert_eq!(store.len(), 5); |
| 653 | |
| 654 | store.clear(); |
| 655 | |
| 656 | assert!(store.is_empty()); |
| 657 | assert_eq!(store.len(), 0); |
| 658 | } |
| 659 | |
| 660 | #[test] |
| 661 | fn test_hashes() { |
nothing calls this directly
no test coverage detected