About the Expressiveness of D

Jonathan M Davis jmdavisProg at gmx.com
Wed Apr 3 11:08:18 PDT 2013


On Tuesday, April 02, 2013 20:41:23 Walter Bright wrote:
> Currently, the datetime unittest coverage is 95%. Some of the 0 cases
> suggest low hanging fruit.

I should take another look at those. I thought that I had it at more like 98% 
(with most or all of the missing lines being due to stuff like catching 
Exception and asserting 0 in the catch block for making a function nothrow 
when you know that the code being called will never throw), but that was quite 
a while ago, and it sounds like it's now missing some stuff. I'm very much in 
favor of having 100% test coverage on every line that _can_ be tested (there 
may be rare exceptions to that, but I don't think that std.datetime has any of 
them).

- Jonathan M Davis


More information about the Digitalmars-d mailing list