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

Function test_inline_diff_content_accessors

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

Source from the content-addressed store, hash-verified

1056
1057 #[test]
1058 fn test_inline_diff_content_accessors() {
1059 let old = b"hello";
1060 let new = b"world";
1061 let diff = compute_inline_diff(old, new);
1062
1063 assert_eq!(diff.old_content(), old);
1064 assert_eq!(diff.new_content(), new);
1065 }
1066
1067 #[test]
1068 fn test_inline_diff_hunks_cover_entire_line() {

Callers

nothing calls this directly

Calls 1

compute_inline_diffFunction · 0.85

Tested by

no test coverage detected