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

Function move_identity

atomic-core/src/record/workflow/record/tests.rs:551–561  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

549// ========================================================================
550
551fn move_identity() -> (Inode, Position<NodeId>, PathClaimId, TrunkId) {
552 let change = NodeId::new(7);
553 let position = Position::new(change, ChangePosition::new(12));
554 let claim = PathClaimId::new(
555 position,
556 GraphNode::new(change, ChangePosition::new(0), ChangePosition::new(0)),
557 GraphNode::new(change, ChangePosition::new(0), ChangePosition::new(6)),
558 change,
559 );
560 (Inode::new(42), position, claim, TrunkId::new(change, 0))
561}
562
563#[test]
564fn test_record_moved_file_pure_move_preserves_identity_and_semantic_move() {

Calls

no outgoing calls

Tested by

no test coverage detected