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

Function test_linesplit_only_newlines

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

Source from the content-addressed store, hash-verified

418
419 #[test]
420 fn test_linesplit_only_newlines() {
421 let content = b"\n\n\n";
422 let lines: Vec<_> = LineSplit::new(content, &Separator::Newline).collect();
423
424 assert_eq!(lines.len(), 3);
425 for line in &lines {
426 assert_eq!(line.content(), b"\n");
427 }
428 }
429
430 #[test]
431 fn test_linesplit_crlf() {

Callers

nothing calls this directly

Calls 1

collectMethod · 0.45

Tested by

no test coverage detected