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

Function test_diff_op_equal

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

Source from the content-addressed store, hash-verified

576
577 #[test]
578 fn test_diff_op_equal() {
579 let op = DiffOp::equal(0, 0, 5);
580 assert!(op.is_equal());
581 assert!(!op.is_change());
582 assert_eq!(op.old_range(), 0..5);
583 assert_eq!(op.new_range(), 0..5);
584 assert_eq!(op.deletions(), 0);
585 assert_eq!(op.insertions(), 0);
586 }
587
588 #[test]
589 fn test_diff_op_insert() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected