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

chore(deps): bump github.com/vektra/mockery/v2 from 2.20.2 to 2.21.0 #65

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 5, 2023

Bumps github.com/vektra/mockery/v2 from 2.20.2 to 2.21.0.

Release notes

Sourced from github.com/vektra/mockery/v2's releases.

v2.21.0

Changelog

  • ce72781 Add documentation
  • 2ad198f Create codecov.yml
  • 39ae11a Dramatically increase mock generation speed
  • 733277b Fix incorrect Makefile
  • 82bc0c1 Fixing if statement
  • 16546bb Merge pull request #548 from LandonTClipp/i_am_speed
  • 02edbfe Merge pull request #556 from vektra/LandonTClipp-patch-1
  • 9dadb97 Remove unused mocks
  • c034dde Reshuffle some logic
  • 8a82d41 Restructure config
  • 9963671 Update features.md
  • 757027c Update features.md
  • e057edd update docs
  • b7dab32 update docs
Changelog

Sourced from github.com/vektra/mockery/v2's changelog.

:octicons-tag-24: v2.21.0: #!yaml packages configuration

In this version we release the #!yaml packages configuration section. This new parameter allows defining specific packages to generate mocks for, while also giving fine-grained control over which interfaces are mocked, where they are located, and how they are configured. Details are provided here.

Community input is desired before we consider deprecations of dynamic walking (via #!yaml all: True): vektra/mockery#549

:octicons-tag-24: v2.20.0: Improved Return Value Functions

Return value functions that return an entire method's return value signature can now be provided.

proxyMock := mocks.NewProxy(t)
proxyMock.On("passthrough", mock.AnythingOfType("context.Context"), mock.AnythingOfType("string")).
Return(
    func(ctx context.Context, s string) (string, error) {
        return s, nil
    }
)

You may still use the old way where one function is provided for each return value:

proxyMock := mocks.NewProxy(t)
proxyMock.On("passthrough", mock.AnythingOfType("context.Context"), mock.AnythingOfType("string")).
Return(
    func(ctx context.Context, s string) string {
        return s
    },
    func(ctx context.Context, s string) error {
        return nil
    },
)

:octicons-tag-24: 2.19.0: inpackage-suffix option

When inpackage-suffix is set to True, mock files are suffixed with _mock instead of being prefixed with mock_ for InPackage mocks

:octicons-tag-24: v2.16.0: Config Search Path

Mockery will iteratively search every directory from the current working directory up to the root path for a .mockery.yaml file, if one is not explicitly provided.

:octicons-tag-24: v2.13.0: Generics support

Mocks are now capable of supporting Golang generics.

:octicons-tag-24: v2.11.0: Mock constructors

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/vektra/mockery/v2](https://github.com/vektra/mockery) from 2.20.2 to 2.21.0.
- [Release notes](https://github.com/vektra/mockery/releases)
- [Changelog](https://github.com/vektra/mockery/blob/master/docs/changelog.md)
- [Commits](vektra/mockery@v2.20.2...v2.21.0)

---
updated-dependencies:
- dependency-name: github.com/vektra/mockery/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Mar 5, 2023
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Mar 12, 2023

Superseded by #67.

@dependabot dependabot bot closed this Mar 12, 2023
@dependabot dependabot bot deleted the dependabot/go_modules/github.com/vektra/mockery/v2-2.21.0 branch March 12, 2023 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants