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

Function test_split_lines

atomic-core/src/diff/split.rs:515–520  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

513 // split_lines Tests
514 #[test]
515 fn test_split_lines() {
516 let lines = split_lines(b"hello\nworld\n");
517 assert_eq!(lines.len(), 2);
518 assert_eq!(lines[0].content(), b"hello\n");
519 assert_eq!(lines[1].content(), b"world\n");
520 }
521
522 #[test]
523 fn test_split_lines_empty() {

Callers

nothing calls this directly

Calls 1

split_linesFunction · 0.85

Tested by

no test coverage detected