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

Function test_generate_diff_empty

atomic-core/src/record/workflow/compare.rs:686–691  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 2

generate_diffFunction · 0.85
iterMethod · 0.45

Tested by

no test coverage detected