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

Function test_pending_edge_new

atomic-core/src/apply/workspace.rs:753–764  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

751
752 #[test]
753 fn test_pending_edge_new() {
754 let from = Position::ROOT;
755 let to = Position::new(NodeId::new(1), ChangePosition::new(0));
756 let flag = EdgeFlags::BLOCK;
757
758 let edge = PendingEdge::new(from, to, flag);
759
760 assert_eq!(edge.from, from);
761 assert_eq!(edge.to, to);
762 assert_eq!(edge.flag, flag);
763 assert!(edge.introduced_by.is_none());
764 }
765
766 #[test]
767 fn test_pending_edge_with_introduced_by() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected