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

Function test_from_bytes_simple

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

Source from the content-addressed store, hash-verified

389
390 #[test]
391 fn test_from_bytes_simple() {
392 let lines = Line::from_bytes(b"a\nb\nc\n");
393 assert_eq!(lines.len(), 3);
394 assert_eq!(lines[0].content(), b"a\n");
395 assert_eq!(lines[1].content(), b"b\n");
396 assert_eq!(lines[2].content(), b"c\n");
397 }
398
399 #[test]
400 fn test_from_bytes_no_trailing_newline() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected