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

Function test_linesplit_lines_convenience

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

Source from the content-addressed store, hash-verified

464
465 #[test]
466 fn test_linesplit_lines_convenience() {
467 let content = b"a\nb\n";
468 let lines: Vec<_> = LineSplit::lines(content).collect();
469
470 assert_eq!(lines.len(), 2);
471 assert_eq!(lines[0].content(), b"a\n");
472 assert_eq!(lines[1].content(), b"b\n");
473 }
474
475 #[test]
476 fn test_linesplit_position_tracking() {

Callers

nothing calls this directly

Calls 1

linesFunction · 0.70

Tested by

no test coverage detected