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

Function test_conflict_order

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

Source from the content-addressed store, hash-verified

475
476 #[test]
477 fn test_conflict_order() {
478 let hash = Hash::of(b"test");
479 let pos = Position {
480 change: NodeId::new(1),
481 pos: ChangePosition::new(0),
482 };
483 let conflict = Conflict::order("src/main.rs".to_string(), pos, 42, vec![hash], 1);
484
485 assert_eq!(conflict.conflict_type(), ConflictType::Order);
486 assert_eq!(conflict.path(), "src/main.rs");
487 assert_eq!(conflict.line(), 42);
488 assert_eq!(conflict.id(), 1);
489 assert_eq!(conflict.changes().len(), 1);
490 }
491
492 #[test]
493 fn test_conflict_zombie() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected