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

Function test_compare_content_identical

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

Source from the content-addressed store, hash-verified

1274
1275 #[test]
1276 fn test_compare_content_identical() {
1277 let content = b"hello\nworld\n";
1278 let ops = compare_content(content, content, Algorithm::Myers);
1279
1280 // All equal operations
1281 assert!(ops.iter().all(|op| op.is_equal()));
1282 }
1283
1284 #[test]
1285 fn test_compare_content_insertion() {

Callers

nothing calls this directly

Calls 1

compare_contentFunction · 0.70

Tested by

no test coverage detected