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

Function test_delete_all

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

Source from the content-addressed store, hash-verified

218
219 #[test]
220 fn test_delete_all() {
221 let old = lines(&["a\n", "b\n", "c\n"]);
222 let new: Vec<Line> = vec![];
223
224 let result = diff(&old, &new);
225
226 assert_eq!(result.deletions(), 3);
227 assert_eq!(result.insertions(), 0);
228 }
229
230 #[test]
231 fn test_identical() {

Callers

nothing calls this directly

Calls 2

linesFunction · 0.70
diffFunction · 0.70

Tested by

no test coverage detected