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

Function test_compare_content_patience

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

Source from the content-addressed store, hash-verified

1327
1328 #[test]
1329 fn test_compare_content_patience() {
1330 let old = b"hello\nworld\n";
1331 let new = b"hello\nbeautiful\nworld\n";
1332
1333 let ops = compare_content(old, new, Algorithm::Patience);
1334
1335 // Should produce valid diff
1336 assert!(!ops.is_empty());
1337 }
1338
1339 // Encoding Detection Tests
1340

Callers

nothing calls this directly

Calls 1

compare_contentFunction · 0.70

Tested by

no test coverage detected