MCPcopy Index your code
hub / github.com/code-pushup/cli / aggregateCoverageStats

Function aggregateCoverageStats

packages/utils/src/lib/coverage-tree.ts:172–180  ·  view source on GitHub ↗
(files: CoverageStats[])

Source from the content-addressed store, hash-verified

170}
171
172export function aggregateCoverageStats(files: CoverageStats[]): CoverageStats {
173 return files.reduce<CoverageStats>(
174 (acc, file) => ({
175 covered: acc.covered + file.covered,
176 total: acc.total + file.total,
177 }),
178 { covered: 0, total: 0 },
179 );
180}

Callers 3

logLcovRecordsFunction · 0.90
logReportFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected