MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_trunk_op_display

Function test_trunk_op_display

atomic-core/src/crdt/trunk.rs:629–645  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected