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

Function test_inline_diff_identical

atomic-core/src/diff/inline.rs:1005–1011  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1003
1004 #[test]
1005 fn test_inline_diff_identical() {
1006 let diff = compute_inline_diff(b"hello world", b"hello world");
1007 assert!(!diff.has_changes());
1008 assert!(diff.is_unchanged());
1009 assert_eq!(diff.deleted_bytes(), 0);
1010 assert_eq!(diff.inserted_bytes(), 0);
1011 }
1012
1013 #[test]
1014 fn test_inline_diff_all_deleted() {

Callers

nothing calls this directly

Calls 1

compute_inline_diffFunction · 0.85

Tested by

no test coverage detected