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

Function test_from_bytes_single_line

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

Source from the content-addressed store, hash-verified

415
416 #[test]
417 fn test_from_bytes_single_line() {
418 let lines = Line::from_bytes(b"hello\n");
419 assert_eq!(lines.len(), 1);
420 assert_eq!(lines[0].content(), b"hello\n");
421 assert!(lines[0].is_last());
422 }
423
424 #[test]
425 fn test_from_bytes_only_newlines() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected