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

Function test_compare_content_insertion

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

Source from the content-addressed store, hash-verified

1283
1284 #[test]
1285 fn test_compare_content_insertion() {
1286 let old = b"hello\nworld\n";
1287 let new = b"hello\nbeautiful\nworld\n";
1288
1289 let ops = compare_content(old, new, Algorithm::Myers);
1290
1291 // Should have at least one insert
1292 assert!(ops.iter().any(|op| op.is_insert()));
1293 }
1294
1295 #[test]
1296 fn test_compare_content_deletion() {

Callers

nothing calls this directly

Calls 1

compare_contentFunction · 0.70

Tested by

no test coverage detected