()
| 1132 | |
| 1133 | #[test] |
| 1134 | fn test_result_conflict_count() { |
| 1135 | let mut result = FileOutputResult::empty("test.rs", Inode::ROOT); |
| 1136 | |
| 1137 | assert_eq!(result.conflict_count(), 0); |
| 1138 | |
| 1139 | result.add_conflict(FileConflict::new( |
| 1140 | "test.rs".to_string(), |
| 1141 | FileConflictType::Order, |
| 1142 | )); |
| 1143 | assert_eq!(result.conflict_count(), 1); |
| 1144 | |
| 1145 | result.add_conflict(FileConflict::new( |
| 1146 | "test.rs".to_string(), |
| 1147 | FileConflictType::Cyclic, |
| 1148 | )); |
| 1149 | assert_eq!(result.conflict_count(), 2); |
| 1150 | } |
| 1151 | |
| 1152 | #[test] |
| 1153 | fn test_result_add_conflict() { |
nothing calls this directly
no test coverage detected