Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support mocking methods with trait object arguments #174

Merged
merged 2 commits into from
Aug 23, 2020

Conversation

asomers
Copy link
Owner

@asomers asomers commented Aug 23, 2020

Such arguments can be matched with withf. However, with is useless
for such arguments, because it isn't possible to construct a useful
Predicate that works with them. That's unlikely to change in future
versions of Mockall.

Fixes #152

Such arguments can be matched with `withf`.  However, `with` is useless
for such arguments, because it isn't possible to construct a useful
Predicate that works with them.  That's unlikely to change in future
versions of Mockall.

Fixes #152
@asomers asomers merged commit db0dc91 into master Aug 23, 2020
@asomers asomers deleted the trait_object_args branch August 23, 2020 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support &dyn T arguments
1 participant