()
| 951 | |
| 952 | #[test] |
| 953 | fn test_undeletion_workflow_structure() { |
| 954 | let hash = Hash::of(b"file content"); |
| 955 | |
| 956 | // Undeletion: remove DELETED flag |
| 957 | let edge = NewEdge { |
| 958 | previous: EdgeFlags::BLOCK | EdgeFlags::DELETED, |
| 959 | flag: EdgeFlags::BLOCK, |
| 960 | from: make_position(Some(hash), 0), |
| 961 | to: make_external_vertex(Some(hash), 10, 20), |
| 962 | introduced_by: Some(hash), |
| 963 | }; |
| 964 | |
| 965 | assert!(edge.is_undeletion()); |
| 966 | assert!(!edge.flag.contains(EdgeFlags::DELETED)); |
| 967 | } |
| 968 | } |
nothing calls this directly
no test coverage detected