Replies: 1 comment 1 reply
-
Sorry I didn't notice this discussion when you first opened it. But if you haven't figured it out already, here is the problem: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Alan,
I am trying to mock a concrete struct without success.
I have an Add struct that references RandomGenerator and both of them are using async_trait
add.rs
random_generator.rs
The unit test inside add.rs is something like this
This code does not compile:
My question is:
Is there any secret command to cast the MockRandomGeneratorr mock to the struct concrete?
Beta Was this translation helpful? Give feedback.
All reactions