(rows)
| 52 | const divergent = missing.length + stale.length; |
| 53 | |
| 54 | const byKind = (rows) => { |
| 55 | const m = new Map(); |
| 56 | for (const r of rows) m.set(r.kind, (m.get(r.kind) ?? 0) + 1); |
| 57 | return [...m].sort((a, b) => b[1] - a[1]).map(([k, v]) => `${k}=${v}`).join(', ') || '(none)'; |
| 58 | }; |
| 59 | |
| 60 | const pct = (n, d) => (d ? ((n / d) * 100).toFixed(1) : '0.0'); |
| 61 |
no test coverage detected