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

Function test_conflict_equality

atomic-core/src/output/mod.rs:521–528  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

519
520 #[test]
521 fn test_conflict_equality() {
522 let c1 = Conflict::order("a.txt".to_string(), Position::ROOT, 1, vec![], 1);
523 let c2 = Conflict::order("a.txt".to_string(), Position::ROOT, 1, vec![], 1);
524 let c3 = Conflict::order("b.txt".to_string(), Position::ROOT, 1, vec![], 1);
525
526 assert_eq!(c1, c2);
527 assert_ne!(c1, c3);
528 }
529
530 // -------------------------------------------------------------------------
531 // OutputItem Tests

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected