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

Function test_insert_at_start

atomic-core/src/diff/myers.rs:287–295  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

285
286 #[test]
287 fn test_insert_at_start() {
288 let old = lines(&["b\n", "c\n"]);
289 let new = lines(&["a\n", "b\n", "c\n"]);
290
291 let result = diff(&old, &new);
292
293 assert_eq!(result.insertions(), 1);
294 assert_eq!(result.deletions(), 0);
295 }
296
297 #[test]
298 fn test_insert_at_end() {

Callers

nothing calls this directly

Calls 2

linesFunction · 0.70
diffFunction · 0.70

Tested by

no test coverage detected