Closed dbr closed 4 years ago
@dbr both valid points. care to open a PR? otherwise I'll add it to my list but won't get to it too soon.
Yep shall do!
Is there any chance the Mock
API could be split into a separate Builder
, so that it's harder to accidentally drop .create()
or mix up the mocking and asserting/expecting methods?
Minor thing, but it can be easy to forget to put the
.create()
call when creating a builder (something I found particularly when usingwith_body()
with multi-lines strings)Perhaps the
impl Drop
could warn about this in some way - e.gAdditionally, adding the
must_use
attribute to the return ofcreate()
may help people avoid forgetting to assign the mocks to objects as per these docs