-
Notifications
You must be signed in to change notification settings - Fork 70
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
How would one mock the following trait using automock/mock!?? #638
Labels
question
Usage question
Comments
What error do you get when using |
Here's a dump from the compiler with
|
Those errors are saying that you need to add a lifetime parameter to the references in your function arguments. The easiest one to add is |
Yeah... it looks like it is conflicting with the lifetime added by automock.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looking for the best way to mock out this trait for unit testing... it does not seem to work with the automock or mock!. Wanted to get some advice on a way to mock this out even if I needed to build it out manually.
The text was updated successfully, but these errors were encountered: