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

Function test_content_without_newline

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

Source from the content-addressed store, hash-verified

438
439 #[test]
440 fn test_content_without_newline() {
441 let with_newline = Line::new(b"hello\n");
442 let without_newline = Line::new(b"hello");
443
444 assert_eq!(with_newline.content_without_newline(), b"hello");
445 assert_eq!(without_newline.content_without_newline(), b"hello");
446 }
447
448 #[test]
449 fn test_equality_same() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected