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

Function test_trunk_op_delete

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

Source from the content-addressed store, hash-verified

596
597 #[test]
598 fn test_trunk_op_delete() {
599 let trunk_id = TrunkId::new(NodeId::new(1), 0);
600 let op = TrunkOp::Delete { trunk: trunk_id };
601 assert!(op.is_delete());
602 assert!(!op.is_create());
603 assert_eq!(op.trunk_id(), Some(trunk_id));
604 assert_eq!(op.op_type(), "delete");
605 }
606
607 #[test]
608 fn test_trunk_op_move() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected