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

Function test_trunk_op_move

atomic-core/src/crdt/trunk.rs:608–617  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

606
607 #[test]
608 fn test_trunk_op_move() {
609 let trunk_id = TrunkId::new(NodeId::new(1), 0);
610 let op = TrunkOp::Move {
611 trunk: trunk_id,
612 new_path: "docs/README.md".to_string(),
613 };
614 assert!(op.is_move());
615 assert_eq!(op.trunk_id(), Some(trunk_id));
616 assert_eq!(op.op_type(), "move");
617 }
618
619 #[test]
620 fn test_trunk_op_undelete() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected