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

Function test_diff_op_delete

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

Source from the content-addressed store, hash-verified

598
599 #[test]
600 fn test_diff_op_delete() {
601 let op = DiffOp::delete(5, 5, 3);
602 assert!(op.is_delete());
603 assert!(op.is_change());
604 assert_eq!(op.old_range(), 5..8);
605 assert_eq!(op.new_range(), 5..5);
606 assert_eq!(op.deletions(), 3);
607 assert_eq!(op.insertions(), 0);
608 }
609
610 #[test]
611 fn test_diff_op_replace() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected