()
| 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() { |
nothing calls this directly
no outgoing calls
no test coverage detected