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

Function test_linesplit_byte_separator

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

Source from the content-addressed store, hash-verified

452
453 #[test]
454 fn test_linesplit_byte_separator() {
455 let content = b"a:b:c:";
456 let sep = Separator::Byte(b':');
457 let lines: Vec<_> = LineSplit::new(content, &sep).collect();
458
459 assert_eq!(lines.len(), 3);
460 assert_eq!(lines[0].content(), b"a:");
461 assert_eq!(lines[1].content(), b"b:");
462 assert_eq!(lines[2].content(), b"c:");
463 }
464
465 #[test]
466 fn test_linesplit_lines_convenience() {

Callers

nothing calls this directly

Calls 1

collectMethod · 0.45

Tested by

no test coverage detected