Skip to content

Conversation

@dependabot
Copy link

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

Bumps github.com/vektra/mockery/v2 from 2.10.0 to 2.22.1.

Release notes

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

v2.22.1

Changelog

  • 1f08b60 Add additional cases to InterfaceName template variable
  • 32917d4 Add more documentation for template variables
  • ddd193c Add more variables available for templating, update docs
  • c96741b Merge pull request #578 from LandonTClipp/interface_case

v2.22.0

Changelog

  • b61e29c Merge pull request #569 from hikyaru-suzuki/feature/add_struct_tag
  • 482013c add: impl struct tag
  • fab0e95 add: test
  • f39cd74 fix: go mod tidy
  • dd639a3 fix: review
  • c66831a update: refactor
  • 783a82a update: refactor
  • c8f12f0 update: rename

v2.21.6

Changelog

  • 61d7db1 Add InterfaceDir template variable
  • 284fce2 Add note about InterfaceDir template variable
  • 1234a24 Merge pull request #576 from LandonTClipp/issue_574

v2.21.5

Changelog

  • cd10413 Fix issue with global defaults having no effect
  • e478c25 Merge pull request #573 from LandonTClipp/issue_571

v2.21.4

Changelog

  • 668d432 Merge pull request #570 from xonvanetta/bugfix/568
  • dd54fc8 fix: don't override c.Dir when it's set

v2.21.3

Changelog

  • c3c0530 Add danger message to docs for packages feature
  • 743d11c Add test for empty/bad packages config
  • 4601062 Fix bug when parsing packages config
  • 1f04222 Merge pull request #567 from LandonTClipp/issue_565
  • 660b7f9 Update features.md
  • 86617b1 fix tests with config

v2.21.2

Changelog

  • 425570a Merge pull request #566 from LandonTClipp/config_warn
  • 9a12a12 Remove warning message for absent config file
  • 62dcb4b Update index.md
  • d9b8b36 Update index.md

... (truncated)

Changelog

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

Changelog

This changelog describes major feature additions. Please view the releases page for more details on commits and minor changes.

: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

... (truncated)

Commits
  • c96741b Merge pull request #578 from LandonTClipp/interface_case
  • 32917d4 Add more documentation for template variables
  • ddd193c Add more variables available for templating, update docs
  • 1f08b60 Add additional cases to InterfaceName template variable
  • b61e29c Merge pull request #569 from hikyaru-suzuki/feature/add_struct_tag
  • 284fce2 Add note about InterfaceDir template variable
  • 1234a24 Merge pull request #576 from LandonTClipp/issue_574
  • 61d7db1 Add InterfaceDir template variable
  • dd639a3 fix: review
  • c66831a update: refactor
  • Additional commits viewable in compare view

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.10.0 to 2.22.1.
- [Release notes](https://github.com/vektra/mockery/releases)
- [Changelog](https://github.com/vektra/mockery/blob/master/docs/changelog.md)
- [Commits](vektra/mockery@v2.10.0...v2.22.1)

---
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 @github
Copy link
Author

dependabot bot commented on behalf of github Mar 10, 2023

The following labels could not be found: T:dependencies, S:automerge.

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.

0 participants