()
| 684 | |
| 685 | #[test] |
| 686 | fn test_generate_diff_empty() { |
| 687 | let ops = generate_diff(b"same\n", b"same\n", Algorithm::Myers); |
| 688 | // When content is identical, we may get Equal ops but no Insert/Delete/Replace |
| 689 | let has_changes = ops.iter().any(|op| !matches!(op, DiffOp::Equal { .. })); |
| 690 | assert!(!has_changes, "identical content should have no change ops"); |
| 691 | } |
| 692 | |
| 693 | #[test] |
| 694 | fn test_generate_diff_insert() { |
nothing calls this directly
no test coverage detected