Skip to content

Commit 3a7d32f

Browse files
committed
only count covered lines towards coverage percentage
1 parent 07e70e1 commit 3a7d32f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/github/file/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ function calculateCoveragePct(coverageReport: FileCoverageReport): number {
282282
const report = Object.entries(coverageReport);
283283
const totalLines = report.length;
284284
const coveredLines = report.filter(
285-
([line, status]) => status !== CoverageStatus.UNCOVERED
285+
([line, status]) => status === CoverageStatus.COVERED
286286
).length;
287287
return (coveredLines * 100) / totalLines;
288288
}

0 commit comments

Comments
 (0)