MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / densifyCovered

Function densifyCovered

telemetry-dashboard/src/api.ts:317–319  ·  view source on GitHub ↗

Like densify(), but days past `coveredThrough` are null: not counted yet, not zero.

(labels: string[], byDay: Map<string, number>, coveredThrough: string | null)

Source from the content-addressed store, hash-verified

315
316/** Like densify(), but days past `coveredThrough` are null: not counted yet, not zero. */
317function 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

Callers 2

fillFunction · 0.85
durationBucketSeriesFunction · 0.85

Calls 2

mapMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected