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

Commits on Sep 6, 2020

  1. Changed the syntax for mocking foreign functions.

    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 committed Sep 6, 2020
    Configuration menu
    Copy the full SHA
    366b8e0 View commit details
    Browse the repository at this point in the history