Coverage / crates/hub/src/render/mod.rs 100.0%
29 of 29 lines run, 5 of 5 functions · run #496 on main · run missed
| 1 | //! Rendering helpers with no knowledge of routes: Markdown, syntax | |
| 2 | //! highlighting, diffs, the history graph, and human times. Each is pure | |
| 3 | //! and unit tested. | |
| 4 | | |
| 5 | | |
| 6 | | |
| 7 | | |
| 8 | | |
| 9 | | |
| 10 | | |
| 11 | | |
| 12 | ||
| 13 | /// HTML-escape text for insertion into element content or attributes. | |
| 14 | 35× | |
| 15 | 35× | |
| 16 | 8866× | |
| 17 | 8866× | |
| 18 | 1× | |
| 19 | 5× | |
| 20 | 3× | |
| 21 | 4× | |
| 22 | 1× | |
| 23 | 8852× | |
| 24 | | |
| 25 | | |
| 26 | 35× | |
| 27 | 35× | |
| 28 | ||
| 29 | /// `1.2 KiB`, `3.4 MiB`, `512 B`. | |
| 30 | 86× | |
| 31 | | |
| 32 | 86× | |
| 33 | 86× | |
| 34 | 105× | |
| 35 | 19× | |
| 36 | 19× | |
| 37 | 19× | |
| 38 | 86× | |
| 39 | 70× | |
| 40 | | |
| 41 | 16× | |
| 42 | | |
| 43 | 86× | |
| 44 | ||
| 45 | | |
| 46 | | |
| 47 | | |
| 48 | | |
| 49 | | |
| 50 | 1× | |
| 51 | 1× | |
| 52 | 1× | |
| 53 | 1× | |
| 54 | 1× | |
| 55 | 1× | |
| 56 | |