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

Mocking multiple functions #24

Closed
cholcombe973 opened this issue Aug 13, 2018 · 1 comment
Closed

Mocking multiple functions #24

cholcombe973 opened this issue Aug 13, 2018 · 1 comment

Comments

@cholcombe973
Copy link

cholcombe973 commented Aug 13, 2018

First off let me say thanks! This is an awesome crate and badly needed. I got it working with mocking a single function that that works great. However I'm a bit confused why it doesn't work when I try to mock out multiple functions. Example: https://github.com/Comcast/Bynar/blob/state-machine/src/test_disk.rs#L209. rust seems to ignore the extra mocks and I'm not sure why.

@cholcombe973
Copy link
Author

Nvm it's because I didn't mark them as mockable. Sorry i've been starring at the screen too long. This is really awesome work! The Generic+trait testing hack thing was just too nasty for this project

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

No branches or pull requests

1 participant