()
| 520 | |
| 521 | #[test] |
| 522 | fn no_trailing_newline() { |
| 523 | let s = "no\ntrailing\nnewline"; |
| 524 | |
| 525 | let mut buf = String::new(); |
| 526 | super::format_bytes(s.as_bytes(), &mut buf).unwrap(); |
| 527 | |
| 528 | assert_eq!( |
| 529 | "``` |
| 530 | no |
| 531 | trailing |
| 532 | newline``` |
| 533 | ", |
| 534 | buf |
| 535 | ); |
| 536 | } |
| 537 | } |
nothing calls this directly
no test coverage detected