()
| 666 | |
| 667 | #[test] |
| 668 | fn test_clear() { |
| 669 | let store = MemoryChangeStore::new(); |
| 670 | |
| 671 | for i in 0..5 { |
| 672 | let change = create_test_change(&format!("Change {}", i), &[i as u8]); |
| 673 | store.insert_change(change).unwrap(); |
| 674 | } |
| 675 | |
| 676 | assert_eq!(store.len(), 5); |
| 677 | |
| 678 | store.clear(); |
| 679 | |
| 680 | assert!(store.is_empty()); |
| 681 | assert_eq!(store.len(), 0); |
| 682 | } |
| 683 | |
| 684 | #[test] |
| 685 | fn test_hashes() { |
nothing calls this directly
no test coverage detected