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

Function test_result_clone

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

Source from the content-addressed store, hash-verified

1216
1217 #[test]
1218 fn test_result_clone() {
1219 let mut result = FileOutputResult::empty("test.rs", Inode::ROOT);
1220 result.add_conflict(FileConflict::new(
1221 "test.rs".to_string(),
1222 FileConflictType::Order,
1223 ));
1224
1225 let cloned = result.clone();
1226
1227 assert_eq!(result.path, cloned.path);
1228 assert_eq!(result.conflict_count(), cloned.conflict_count());
1229 }
1230
1231 #[test]
1232 fn test_result_debug() {

Callers

nothing calls this directly

Calls 2

add_conflictMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected