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

Function test_semantic_diff_identical

atomic-core/src/diff/semantic/tests.rs:245–251  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

243
244 #[test]
245 fn test_semantic_diff_identical() {
246 let content = b"line1\nline2\nline3\n";
247 let diff = semantic_diff(content, content);
248 assert!(diff.is_unchanged());
249 assert!(!diff.has_changes());
250 assert!(diff.changes().is_empty());
251 }
252
253 #[test]
254 fn test_semantic_diff_empty() {

Callers

nothing calls this directly

Calls 1

semantic_diffFunction · 0.85

Tested by

no test coverage detected