()
| 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() { |
nothing calls this directly
no outgoing calls
no test coverage detected