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

Function test_insert_all

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

Source from the content-addressed store, hash-verified

207
208 #[test]
209 fn test_insert_all() {
210 let old: Vec<Line> = vec![];
211 let new = lines(&["a\n", "b\n", "c\n"]);
212
213 let result = diff(&old, &new);
214
215 assert_eq!(result.insertions(), 3);
216 assert_eq!(result.deletions(), 0);
217 }
218
219 #[test]
220 fn test_delete_all() {

Callers

nothing calls this directly

Calls 2

linesFunction · 0.70
diffFunction · 0.70

Tested by

no test coverage detected