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

Function test_branch_op_insert

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected