()
| 787 | |
| 788 | #[test] |
| 789 | fn test_stats_trunk_operations() { |
| 790 | let mut stats = ApplyStats::new(); |
| 791 | |
| 792 | stats.add_trunk_created(); |
| 793 | assert_eq!(stats.trunks_created(), 1); |
| 794 | |
| 795 | stats.add_trunk_deleted(); |
| 796 | assert_eq!(stats.trunks_deleted(), 1); |
| 797 | |
| 798 | stats.add_trunk_moved(); |
| 799 | assert_eq!(stats.trunks_moved(), 1); |
| 800 | |
| 801 | stats.add_trunk_undeleted(); |
| 802 | assert_eq!(stats.trunks_undeleted(), 1); |
| 803 | |
| 804 | assert_eq!(stats.total_trunk_ops(), 4); |
| 805 | } |
| 806 | |
| 807 | #[test] |
| 808 | fn test_stats_branch_operations() { |
nothing calls this directly
no test coverage detected