[Issue 20707] New: the percentage of coverage reported should be more accurate

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 29 11:27:00 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=20707

          Issue ID: 20707
           Summary: the percentage of coverage reported should be more
                    accurate
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: bootcamp, diagnostic
          Severity: enhancement
          Priority: P1
         Component: druntime
          Assignee: nobody at puremagic.com
          Reporter: b2.temp at gmx.com

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.

--


More information about the Digitalmars-d-bugs mailing list