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

Function test_result_with_conflicts

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

Source from the content-addressed store, hash-verified

1430
1431 #[test]
1432 fn test_result_with_conflicts() {
1433 let conflicts = vec![
1434 FileConflict::new("test.rs".to_string(), FileConflictType::Order),
1435 FileConflict::new("test.rs".to_string(), FileConflictType::Cyclic),
1436 ];
1437 let result =
1438 FileOutputResult::empty("test.rs", Inode::ROOT).with_conflicts(conflicts.clone());
1439
1440 assert_eq!(result.conflict_count(), 2);
1441 }
1442
1443 #[test]
1444 fn test_result_builder_chain() {

Callers

nothing calls this directly

Calls 2

with_conflictsMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected