()
| 879 | |
| 880 | #[test] |
| 881 | fn test_stats_merge() { |
| 882 | let mut stats1 = ApplyStats::new(); |
| 883 | stats1.add_trunk_created(); |
| 884 | stats1.add_branch_inserted(); |
| 885 | |
| 886 | let mut stats2 = ApplyStats::new(); |
| 887 | stats2.add_trunk_created(); |
| 888 | stats2.add_leaf_inserted(); |
| 889 | stats2.add_conflict(); |
| 890 | |
| 891 | stats1.merge(&stats2); |
| 892 | |
| 893 | assert_eq!(stats1.trunks_created(), 2); |
| 894 | assert_eq!(stats1.branches_inserted(), 1); |
| 895 | assert_eq!(stats1.leaves_inserted(), 1); |
| 896 | assert_eq!(stats1.conflicts_detected(), 1); |
| 897 | } |
| 898 | |
| 899 | #[test] |
| 900 | fn test_stats_display() { |
nothing calls this directly
no test coverage detected