(files: &FileCounts)
| 206 | } |
| 207 | |
| 208 | fn file_counts(files: &FileCounts) -> String { |
| 209 | let mut parts = vec![format!("{} recorded", files.recorded)]; |
| 210 | for (count, label) in [ |
| 211 | (files.present, "unchanged"), |
| 212 | (files.modified, "modified"), |
| 213 | (files.missing, "missing"), |
| 214 | (files.unreadable, "unreadable"), |
| 215 | ] { |
| 216 | if count > 0 { |
| 217 | parts.push(format!("{count} {label}")); |
| 218 | } |
| 219 | } |
| 220 | parts.join(", ") |
| 221 | } |
| 222 | |
| 223 | fn render_skills(o: &mut String, report: &Report) { |
| 224 | section(o, "Skills"); |
no test coverage detected