()
| 650 | |
| 651 | #[test] |
| 652 | fn test_branch_op_insert() { |
| 653 | let op = BranchOp::Insert { |
| 654 | after: None, |
| 655 | content: vec![], |
| 656 | }; |
| 657 | assert!(op.is_insert()); |
| 658 | assert!(!op.is_delete()); |
| 659 | assert!(op.branch_id().is_none()); |
| 660 | assert_eq!(op.op_type(), "insert"); |
| 661 | assert_eq!(op.insert_after(), Some(None)); |
| 662 | assert_eq!(op.content(), Some(&[][..])); |
| 663 | } |
| 664 | |
| 665 | #[test] |
| 666 | fn test_branch_op_insert_after() { |
nothing calls this directly
no outgoing calls
no test coverage detected