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

Function test_compare_content_empty_new

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

Source from the content-addressed store, hash-verified

1316
1317 #[test]
1318 fn test_compare_content_empty_new() {
1319 let old = b"hello\n";
1320 let new = b"";
1321
1322 let ops = compare_content(old, new, Algorithm::Myers);
1323
1324 // Should be all deletes
1325 assert!(ops.iter().all(|op| op.is_delete() || op.is_equal()));
1326 }
1327
1328 #[test]
1329 fn test_compare_content_patience() {

Callers

nothing calls this directly

Calls 1

compare_contentFunction · 0.70

Tested by

no test coverage detected