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

Function test_display_line_creation

atomic-core/src/diff/display.rs:802–808  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

800
801 #[test]
802 fn test_display_line_creation() {
803 let line = DisplayLine::new(LineStatus::Unchanged, b"hello\n", Some(1), Some(1));
804 assert_eq!(line.content, "hello");
805 assert!(line.has_newline);
806 assert_eq!(line.old_line_num, Some(1));
807 assert_eq!(line.new_line_num, Some(1));
808 }
809
810 #[test]
811 fn test_display_line_crlf() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected