Do you want support for CTFE coverage ?

Basile B. via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 1 17:50:29 PDT 2016


On Saturday, 2 July 2016 at 00:38:56 UTC, Stefan Koch wrote:
> On Saturday, 2 July 2016 at 00:34:05 UTC, Walter Bright wrote:
>> On 7/1/2016 1:29 PM, Stefan Koch wrote:
>>> Do you want to see coverage for code executed at CTFE ?
>>
>> It's not necessary since CTFE code can all be executed at 
>> runtime, and coverage tested that way.
>
> Fair enough :)
>
> execpt for code guarded by if (__ctfe)

What I'd like is that the code inside 'if(__ctfe)' branches gets 
ignored in the coverage results, so that 100% can be reached. for 
normal CTFE, to use assert() instead of static assert() does the 
trick.


More information about the Digitalmars-d mailing list