()
| 674 | |
| 675 | #[test] |
| 676 | fn test_branch_op_delete() { |
| 677 | let branch_id = BranchId::new(NodeId::new(1), 0); |
| 678 | let op = BranchOp::Delete { |
| 679 | branch: branch_id, |
| 680 | content: Vec::new(), |
| 681 | }; |
| 682 | assert!(op.is_delete()); |
| 683 | assert!(!op.is_insert()); |
| 684 | assert_eq!(op.branch_id(), Some(branch_id)); |
| 685 | assert_eq!(op.op_type(), "delete"); |
| 686 | assert!(op.insert_after().is_none()); |
| 687 | assert!(op.content().unwrap().is_empty()); |
| 688 | } |
| 689 | |
| 690 | #[test] |
| 691 | fn test_branch_op_restore() { |
nothing calls this directly
no outgoing calls
no test coverage detected