Code coverage in Phobos

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Tue Mar 29 02:39:49 PDT 2016


On 3/28/2016 9:38 PM, Vladimir Panteleev wrote:
> Ah, OK. Though, this is something that could be improved in the implementation
> without changing the language. DMD should not emit code that's not called in the
> module, and not callable from outside the module due to e.g. being private.
> Probably would help with template bloat, too. LTO would probably take care of
> that in theory, I wonder if LDC's or GDC's LTO doesn't have this issue (not that
> it would help testing Phobos coverage).


Or one could write unit tests specifically for the helper functions. (I've done 
that.)


More information about the Digitalmars-d mailing list