Thanks so much for this library - I really appreciate the work you've put into it! I have a slightly unusual use case surrounding testing async processing and I'd basically like to check to see if the mock has matched while not panicking. It looks like mockito::mock isn't UnwindSafe so catching the assert panic requires wrapping it in a AssertUnwindSafe which I'm not totally sure is correct.
This just provides a matched method that returns a bool for this particular use case. Let me know what you think/if it's appropriate or not!
@max-b looks good, thanks for your contribution (and special :1st_place_medal: for updating the docs). I think this can fit into the library so I'm going to merge.
Hi!
Thanks so much for this library - I really appreciate the work you've put into it! I have a slightly unusual use case surrounding testing async processing and I'd basically like to check to see if the mock has matched while not panicking. It looks like
mockito::mock
isn'tUnwindSafe
so catching theassert
panic requires wrapping it in aAssertUnwindSafe
which I'm not totally sure is correct.This just provides a
matched
method that returns a bool for this particular use case. Let me know what you think/if it's appropriate or not!Thanks!!!