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

Function test_leaf_op_insert_after

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

Source from the content-addressed store, hash-verified

647
648 #[test]
649 fn test_leaf_op_insert_after() {
650 let after_id = LeafId::new(NodeId::new(1), 5);
651 let op = LeafOp::Insert {
652 after: Some(after_id),
653 kind: TokenKind::Operator,
654 content: b"+".to_vec(),
655 };
656 assert_eq!(op.insert_after(), Some(Some(after_id)));
657 }
658
659 #[test]
660 fn test_leaf_op_delete() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected