()
| 699 | |
| 700 | #[test] |
| 701 | fn test_branch_op_display() { |
| 702 | let insert_op = BranchOp::Insert { |
| 703 | after: None, |
| 704 | content: vec![], |
| 705 | }; |
| 706 | assert!(format!("{}", insert_op).contains("insert")); |
| 707 | assert!(format!("{}", insert_op).contains("START")); |
| 708 | |
| 709 | let branch_id = BranchId::new(NodeId::new(1), 0); |
| 710 | let delete_op = BranchOp::Delete { |
| 711 | branch: branch_id, |
| 712 | content: Vec::new(), |
| 713 | }; |
| 714 | assert!(format!("{}", delete_op).contains("delete")); |
| 715 | |
| 716 | let restore_op = BranchOp::Restore { branch: branch_id }; |
| 717 | assert!(format!("{}", restore_op).contains("restore")); |
| 718 | } |
| 719 | |
| 720 | #[test] |
| 721 | fn test_branch_op_display_with_after() { |
nothing calls this directly
no outgoing calls
no test coverage detected