Closed bbaldino closed 1 year ago
Yeah, that should work fine. Have you tried it yet?
Yes, sorry--I continued playing with things a bit more and believe I have something working now...I was waiting to verify a bit more before closing this.
From what I can tell so far, the key part that I seemed to be missing was fully-qualifying the name there (i.e. crate::kv_store::MockKeyValueStore
). I'll keep validating this and close this out later today if everything is looking good. Thanks!
All good, sorry for the noise 👍
I've got a trait with a function that returns another trait (represented via an associated type), that I'd like to be able to return a mock of, in the automock case. For example:
Is it possible to do this? Or is there a better way to accomplish what I'm trying to do here?