()
| 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() { |
nothing calls this directly
no outgoing calls
no test coverage detected