MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_result_conflict_count

Function test_result_conflict_count

atomic-core/src/output/repo/file.rs:1134–1150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

add_conflictMethod · 0.45

Tested by

no test coverage detected