A technique to mock "static interfaces" (e.g. isInputRange)
Robert burner Schadek via Digitalmars-d
digitalmars-d at puremagic.com
Wed May 25 15:07:07 PDT 2016
+1 having a look at AutoImplement
For testing ranges, I usually use
https://github.com/dlang/phobos/blob/master/std/internal/test/dummyrange.d
even though its internal ;-)
anyway, more and better testing always good.
p.s. I think at some point we have to build some (the perfect)
mocking framework with dependency injection and all the other
awesome stuff. But before that can happen we have to lose the
fear of classes and OO. Please no OT!
More information about the Digitalmars-d
mailing list