()
| 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() { |
nothing calls this directly
no outgoing calls
no test coverage detected