Like densify(), but days past `coveredThrough` are null: not counted yet, not zero.
(labels: string[], byDay: Map<string, number>, coveredThrough: string | null)
| 315 | |
| 316 | /** Like densify(), but days past `coveredThrough` are null: not counted yet, not zero. */ |
| 317 | function densifyCovered(labels: string[], byDay: Map<string, number>, coveredThrough: string | null): (number | null)[] { |
| 318 | return labels.map((day) => (coveredThrough === null || day > coveredThrough ? null : (byDay.get(day) ?? 0))); |
| 319 | } |
| 320 | |
| 321 | // --------------------------------------------------------------------------- |
| 322 | // /api/summary — the big numbers |
no test coverage detected