()
| 627 | |
| 628 | #[test] |
| 629 | fn test_trunk_op_display() { |
| 630 | let create_op = TrunkOp::Create { |
| 631 | path: "test.txt".to_string(), |
| 632 | encoding: None, |
| 633 | }; |
| 634 | assert!(format!("{}", create_op).contains("create")); |
| 635 | |
| 636 | let trunk_id = TrunkId::new(NodeId::new(1), 0); |
| 637 | let delete_op = TrunkOp::Delete { trunk: trunk_id }; |
| 638 | assert!(format!("{}", delete_op).contains("delete")); |
| 639 | |
| 640 | let move_op = TrunkOp::Move { |
| 641 | trunk: trunk_id, |
| 642 | new_path: "new.txt".to_string(), |
| 643 | }; |
| 644 | assert!(format!("{}", move_op).contains("move")); |
| 645 | } |
| 646 | |
| 647 | #[test] |
| 648 | fn test_trunk_op_serde() { |
nothing calls this directly
no outgoing calls
no test coverage detected