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