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

Function test_compare_content_deletion

atomic-core/src/record/detect.rs:1296–1304  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1294
1295 #[test]
1296 fn test_compare_content_deletion() {
1297 let old = b"hello\nbeautiful\nworld\n";
1298 let new = b"hello\nworld\n";
1299
1300 let ops = compare_content(old, new, Algorithm::Myers);
1301
1302 // Should have at least one delete
1303 assert!(ops.iter().any(|op| op.is_delete()));
1304 }
1305
1306 #[test]
1307 fn test_compare_content_empty_old() {

Callers

nothing calls this directly

Calls 1

compare_contentFunction · 0.70

Tested by

no test coverage detected