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

Function test_diff_op_replace

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

Source from the content-addressed store, hash-verified

609
610 #[test]
611 fn test_diff_op_replace() {
612 let op = DiffOp::replace(2, 3, 2, 1);
613 assert!(op.is_replace());
614 assert!(op.is_change());
615 assert_eq!(op.old_range(), 2..5);
616 assert_eq!(op.new_range(), 2..3);
617 assert_eq!(op.deletions(), 3);
618 assert_eq!(op.insertions(), 1);
619 }
620
621 #[test]
622 fn test_diff_op_display() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected