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

Function test_diff_op_insert

atomic-core/src/diff/ops.rs:589–597  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

587
588 #[test]
589 fn test_diff_op_insert() {
590 let op = DiffOp::insert(3, 3, 2);
591 assert!(op.is_insert());
592 assert!(op.is_change());
593 assert_eq!(op.old_range(), 3..3);
594 assert_eq!(op.new_range(), 3..5);
595 assert_eq!(op.deletions(), 0);
596 assert_eq!(op.insertions(), 2);
597 }
598
599 #[test]
600 fn test_diff_op_delete() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected