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

Function lines

atomic-core/src/diff/patience.rs:380–382  ·  view source on GitHub ↗

Helper to create lines from strings

(strs: &[&'a str])

Source from the content-addressed store, hash-verified

378
379 /// Helper to create lines from strings
380 fn lines<'a>(strs: &[&'a str]) -> Vec<Line<'a>> {
381 strs.iter().map(|s| Line::new(s.as_bytes())).collect()
382 }
383
384 // Basic Tests
385 #[test]

Callers 15

test_insert_allFunction · 0.70
test_delete_allFunction · 0.70
test_identicalFunction · 0.70
test_single_insertFunction · 0.70
test_single_deleteFunction · 0.70
test_replaceFunction · 0.70
test_fallback_to_myersFunction · 0.70

Calls 2

iterMethod · 0.45
as_bytesMethod · 0.45

Tested by 15

test_insert_allFunction · 0.56
test_delete_allFunction · 0.56
test_identicalFunction · 0.56
test_single_insertFunction · 0.56
test_single_deleteFunction · 0.56
test_replaceFunction · 0.56
test_fallback_to_myersFunction · 0.56