Thread overview
[Issue 13524] -cov does not account for inline conditionals
Nov 04, 2014
yebblies
Dec 17, 2022
Iain Buclaw
November 04, 2014
https://issues.dlang.org/show_bug.cgi?id=13524

yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies@gmail.com

--- Comment #1 from yebblies <yebblies@gmail.com> ---
(In reply to Andrei Alexandrescu from comment #0)
> 
> If condition is always the same, one of the function calls isn't covered, and cov does not detect that. Writing the condition on 2-3 lines does work, but coverage analysis shouldn't require code reformatting.
> 

It does require reformatting, because dmd's coverage is line-based.  I would expect an expression-based coverage implementation to be much more complicated, both in output format and internal implementation.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=13524

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--
December 13
https://issues.dlang.org/show_bug.cgi?id=13524

--- Comment #2 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/18889

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--