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

Function test_linesplit_single_line

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

Source from the content-addressed store, hash-verified

398
399 #[test]
400 fn test_linesplit_single_line() {
401 let content = b"hello\n";
402 let lines: Vec<_> = LineSplit::new(content, &Separator::Newline).collect();
403
404 assert_eq!(lines.len(), 1);
405 assert_eq!(lines[0].content(), b"hello\n");
406 assert!(lines[0].is_last());
407 }
408
409 #[test]
410 fn test_linesplit_single_line_no_newline() {

Callers

nothing calls this directly

Calls 1

collectMethod · 0.45

Tested by

no test coverage detected