You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* in a 200 line file with 1 missed line, statusbar would report 100%
coverage with `Math.round`, which is misleading; there is still one
missed line, so use `Math.floor` instead (which would report 99%
coverage)
Is your feature request related to a problem? Please describe.
I open a file with 200 LoC, 1 line uncovered. I expect the summary to not say "100% Coverage," since there's a line missing.
It currently does say 100% though, because$\frac{199}{200} * 100=99.5$ , and that rounds to $100$ .
Describe the solution you'd like
If there's interest/folks are okay with it, I think this line:
vscode-coverage-gutters/src/coverage-system/coverageservice.ts
Line 178 in 7b40ddc
should be changed from
Math.round
toMath.floor
. I'll file a PR for this later today, but wanted to raise the issue too for visibilityDescribe alternatives you've considered
Additional context
N/A
The text was updated successfully, but these errors were encountered: