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

Changed the syntax for mocking foreign functions. #201

Merged
merged 1 commit into from
Sep 6, 2020
Merged

Conversation

asomers
Copy link
Owner

@asomers asomers commented Sep 5, 2020

Instead of using #[automock] directly on the extern block, you must
wrap the extern block in a module, and #[automock] that module. The
old method is deprecated.

Delete the automock_foreign_c_returning_unit test. It only existed
because of a wart in the way macro_rules! works. It's irrelevant every
since the omnimacro branch.

Delete the automock_foreign_nonpub test. It's a non-issue now that
automocking extern blocks is deprecated.

Instead of using `#[automock]` directly on the `extern` block, you must
wrap the `extern` block in a module, and `#[automock]` that module.  The
old method is deprecated.

Delete the automock_foreign_c_returning_unit test.  It only existed
because of a wart in the way macro_rules! works.  It's irrelevant every
since the omnimacro branch.

Delete the automock_foreign_nonpub test.  It's a non-issue now that
automocking extern blocks is deprecated.
@asomers asomers merged commit fac0e6f into master Sep 6, 2020
@asomers asomers deleted the automock_extern branch September 6, 2020 00:45
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.

1 participant