D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 20707 - the percentage of coverage reported should be more accurate
Summary: the percentage of coverage reported should be more accurate
Status: RESOLVED WONTFIX
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: All All
: P1 enhancement
Assignee: No Owner
URL:
Keywords: bootcamp, diagnostic
Depends on:
Blocks:
 
Reported: 2020-03-29 11:27 UTC by basile-z
Modified: 2021-03-18 07:40 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description basile-z 2020-03-29 11:27:00 UTC
The problem is that when a source contains more than 100 SLOCs, the integral percentage given by DMD is inaccurate so I suggest to use a FP number intead with two decimal ranks of precision in the mantissa, e.g with "%.2f" specifier, which would make the results meaningfull on sources containing up to 10 KSLOCs.
Comment 1 basile-z 2021-03-18 07:40:19 UTC
can be done by a simple command line tool