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

Function test_from_bytes_only_newlines

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

Source from the content-addressed store, hash-verified

423
424 #[test]
425 fn test_from_bytes_only_newlines() {
426 let lines = Line::from_bytes(b"\n\n\n");
427 assert_eq!(lines.len(), 3);
428 for line in &lines {
429 assert_eq!(line.content(), b"\n");
430 }
431 }
432
433 #[test]
434 fn test_from_text() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected