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

Function test_new_line

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

Source from the content-addressed store, hash-verified

368
369 #[test]
370 fn test_new_line() {
371 let line = Line::new(b"hello\n");
372 assert_eq!(line.content(), b"hello\n");
373 assert!(line.has_trailing_newline());
374 assert!(!line.is_last());
375 }
376
377 #[test]
378 fn test_new_line_without_newline() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected