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

Support type-safe InOrder and After #77

Closed
wants to merge 2 commits into from

Commits on Sep 7, 2023

  1. Support type-safe InOrder and After

    Currently when type-safe return values are used, one can't use
    `InOrder` neither `After` with them as they expect
    `*gomock.Call` as parameters. This changes the type these functions
    expect to be an interface which implements the `GetCall() *Call` method,
    which returns the embedded `*gomock.Call` type for generated mock types.
    
    Using this approach helps to have compile-time error/warnings instead of
    runtime errors with a reflection based solution.
    
    Fixes (#70)
    EstebanOlmedo committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    9b18c60 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2023

  1. Add CallWrapper interface for type-safe calls

    Add a new exported interface `CallWrapper` which allow users to use
    `InOrder` and `After` with generated type-safe mock types.
    EstebanOlmedo committed Sep 11, 2023
    Configuration menu
    Copy the full SHA
    afa3d42 View commit details
    Browse the repository at this point in the history