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

Function test_insert_all

atomic-core/src/diff/patience.rs:392–400  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

390
391 #[test]
392 fn test_insert_all() {
393 let old: Vec<Line> = vec![];
394 let new = lines(&["a\n", "b\n", "c\n"]);
395
396 let result = diff(&old, &new);
397
398 assert_eq!(result.insertions(), 3);
399 assert_eq!(result.deletions(), 0);
400 }
401
402 #[test]
403 fn test_delete_all() {

Callers

nothing calls this directly

Calls 2

linesFunction · 0.70
diffFunction · 0.70

Tested by

no test coverage detected