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

Function test_undeletion_workflow_structure

atomic-core/src/apply/edge.rs:953–967  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 2

make_positionFunction · 0.70
make_external_vertexFunction · 0.70

Tested by

no test coverage detected