(snapshot: &DiagnosticsSnapshot, language: &str)
| 212 | } |
| 213 | |
| 214 | fn files_with_diagnostics(snapshot: &DiagnosticsSnapshot, language: &str) -> usize { |
| 215 | snapshot |
| 216 | .diagnostics |
| 217 | .iter() |
| 218 | .filter(|diagnostic| diagnostic.language == language) |
| 219 | .map(|diagnostic| diagnostic.file.as_str()) |
| 220 | .collect::<BTreeSet<_>>() |
| 221 | .len() |
| 222 | } |
| 223 | |
| 224 | fn maybe_spawn_idle_backfill(state: &DashboardState, snapshot: &DiagnosticsSnapshot) { |
| 225 | if snapshot.settings.idle_backfill != IdleBackfillMode::Idle { |
no test coverage detected