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

Function test_branch_op_display

atomic-core/src/crdt/branch.rs:701–718  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected