()
| 773 | |
| 774 | #[test] |
| 775 | fn test_undeletion_workflow_structure() { |
| 776 | let hash = Hash::of(b"file content"); |
| 777 | |
| 778 | // Undeletion: remove DELETED flag |
| 779 | let edge = NewEdge { |
| 780 | previous: EdgeFlags::BLOCK | EdgeFlags::DELETED, |
| 781 | flag: EdgeFlags::BLOCK, |
| 782 | from: make_position(Some(hash), 0), |
| 783 | to: make_external_vertex(Some(hash), 10, 20), |
| 784 | introduced_by: Some(hash), |
| 785 | }; |
| 786 | |
| 787 | assert!(edge.is_undeletion()); |
| 788 | assert!(!edge.flag.contains(EdgeFlags::DELETED)); |
| 789 | } |
| 790 | } |
nothing calls this directly
no test coverage detected