[Issue 13524] -cov does not account for inline conditionals
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Nov 4 01:52:52 PST 2014
https://issues.dlang.org/show_bug.cgi?id=13524
yebblies <yebblies at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |yebblies at gmail.com
--- Comment #1 from yebblies <yebblies at 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.
--
More information about the Digitalmars-d-bugs
mailing list