We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a37aa5a + f484e52 commit afd49c9Copy full SHA for afd49c9
src/coverlet.core/CoverageSummary.cs
@@ -32,7 +32,7 @@ public CoverageSummaryResult CalculateSummary()
32
}
33
34
35
- result.Add(System.IO.Path.GetFileNameWithoutExtension(mod.Key), (linesCovered * 100) / totalLines);
+ result.Add(System.IO.Path.GetFileNameWithoutExtension(mod.Key), totalLines == 0 ? totalLines : (linesCovered * 100) / totalLines);
36
37
38
return result;
0 commit comments