()
| 928 | |
| 929 | #[test] |
| 930 | fn test_deletion_workflow_structure() { |
| 931 | // This test verifies the structure of a deletion workflow |
| 932 | let hash = Hash::of(b"file content"); |
| 933 | |
| 934 | // 1. Create the edge to delete |
| 935 | let edge = NewEdge { |
| 936 | previous: EdgeFlags::BLOCK, |
| 937 | flag: EdgeFlags::BLOCK | EdgeFlags::DELETED, |
| 938 | from: make_position(Some(hash), 0), |
| 939 | to: make_external_vertex(Some(hash), 10, 20), |
| 940 | introduced_by: Some(hash), |
| 941 | }; |
| 942 | |
| 943 | // 2. Wrap in EdgeUpdate |
| 944 | let mut edge_update = EdgeUpdate::new(make_position(Some(hash), 0)); |
| 945 | edge_update.push(edge.clone()); |
| 946 | |
| 947 | // 3. Verify structure |
| 948 | assert_eq!(edge_update.len(), 1); |
| 949 | assert!(edge_update.edges[0].flag.contains(EdgeFlags::DELETED)); |
| 950 | } |
| 951 | |
| 952 | #[test] |
| 953 | fn test_undeletion_workflow_structure() { |
nothing calls this directly
no test coverage detected