()
| 389 | |
| 390 | #[test] |
| 391 | fn test_from_bytes_simple() { |
| 392 | let lines = Line::from_bytes(b"a\nb\nc\n"); |
| 393 | assert_eq!(lines.len(), 3); |
| 394 | assert_eq!(lines[0].content(), b"a\n"); |
| 395 | assert_eq!(lines[1].content(), b"b\n"); |
| 396 | assert_eq!(lines[2].content(), b"c\n"); |
| 397 | } |
| 398 | |
| 399 | #[test] |
| 400 | fn test_from_bytes_no_trailing_newline() { |
nothing calls this directly
no outgoing calls
no test coverage detected