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

Function test_undeletion_workflow_structure

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

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 2

make_positionFunction · 0.70
make_external_vertexFunction · 0.70

Tested by

no test coverage detected