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

Function test_leaf_op_restore

atomic-core/src/crdt/leaf.rs:689–696  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

687
688 #[test]
689 fn test_leaf_op_restore() {
690 let leaf_id = LeafId::new(NodeId::new(1), 0);
691 let op = LeafOp::Restore { leaf: leaf_id };
692 assert!(op.is_restore());
693 assert!(!op.is_delete());
694 assert_eq!(op.leaf_id(), Some(leaf_id));
695 assert_eq!(op.op_type(), "restore");
696 }
697
698 #[test]
699 fn test_leaf_op_display() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected