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

Function test_result_clone

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

Source from the content-addressed store, hash-verified

1456
1457 #[test]
1458 fn test_result_clone() {
1459 let mut result = FileOutputResult::empty("test.rs", Inode::ROOT);
1460 result.add_conflict(FileConflict::new(
1461 "test.rs".to_string(),
1462 FileConflictType::Order,
1463 ));
1464
1465 let cloned = result.clone();
1466
1467 assert_eq!(result.path, cloned.path);
1468 assert_eq!(result.conflict_count(), cloned.conflict_count());
1469 }
1470
1471 #[test]
1472 fn test_result_debug() {

Callers

nothing calls this directly

Calls 2

add_conflictMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected