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

Function test_linesplit_crlf

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

Source from the content-addressed store, hash-verified

429
430 #[test]
431 fn test_linesplit_crlf() {
432 let content = b"a\r\nb\r\nc\r\n";
433 let lines: Vec<_> = LineSplit::new(content, &Separator::CrLf).collect();
434
435 assert_eq!(lines.len(), 3);
436 assert_eq!(lines[0].content(), b"a\r\n");
437 assert_eq!(lines[1].content(), b"b\r\n");
438 assert_eq!(lines[2].content(), b"c\r\n");
439 }
440
441 #[test]
442 fn test_linesplit_custom_separator() {

Callers

nothing calls this directly

Calls 1

collectMethod · 0.45

Tested by

no test coverage detected