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

Function test_leaf_op_delete

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

Source from the content-addressed store, hash-verified

658
659 #[test]
660 fn test_leaf_op_delete() {
661 let leaf_id = LeafId::new(NodeId::new(1), 0);
662 let op = LeafOp::Delete { leaf: leaf_id };
663 assert!(op.is_delete());
664 assert!(!op.is_insert());
665 assert_eq!(op.leaf_id(), Some(leaf_id));
666 assert_eq!(op.op_type(), "delete");
667 assert!(op.insert_after().is_none());
668 assert!(op.content().is_none());
669 assert!(op.token_kind().is_none());
670 assert_eq!(op.content_len(), 0);
671 }
672
673 #[test]
674 fn test_leaf_op_replace() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected