()
| 806 | |
| 807 | #[test] |
| 808 | fn test_stats_branch_operations() { |
| 809 | let mut stats = ApplyStats::new(); |
| 810 | |
| 811 | stats.add_branch_inserted(); |
| 812 | assert_eq!(stats.branches_inserted(), 1); |
| 813 | |
| 814 | stats.add_branch_deleted(); |
| 815 | assert_eq!(stats.branches_deleted(), 1); |
| 816 | |
| 817 | stats.add_branch_restored(); |
| 818 | assert_eq!(stats.branches_restored(), 1); |
| 819 | |
| 820 | assert_eq!(stats.total_branch_ops(), 3); |
| 821 | } |
| 822 | |
| 823 | #[test] |
| 824 | fn test_stats_leaf_operations() { |
nothing calls this directly
no test coverage detected