-cov doesn't check templated code

simendsjo simendsjo at gmail.com
Thu Mar 14 09:17:10 PDT 2013


On Thursday, 14 March 2013 at 16:09:01 UTC, bearophile wrote:
> simendsjo:
>
>> Code coverage doesn't work with templates. Is this by design?
>
> A code coverage tells how many time a line of code is run at 
> run-time. But your template contains no code that is run at 
> run-time. So you are looking for a different kind of counter.

Makes sense. Would be nice to easily see that the templates are 
being tested more properly though.


More information about the Digitalmars-d-learn mailing list