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

Function test_compare_content_empty_old

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

Source from the content-addressed store, hash-verified

1305
1306 #[test]
1307 fn test_compare_content_empty_old() {
1308 let old = b"";
1309 let new = b"hello\n";
1310
1311 let ops = compare_content(old, new, Algorithm::Myers);
1312
1313 // Should be all inserts
1314 assert!(ops.iter().all(|op| op.is_insert() || op.is_equal()));
1315 }
1316
1317 #[test]
1318 fn test_compare_content_empty_new() {

Callers

nothing calls this directly

Calls 1

compare_contentFunction · 0.70

Tested by

no test coverage detected