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.18.0 to 2.20.0 #62

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 12, 2023

Bumps github.com/vektra/mockery/v2 from 2.18.0 to 2.20.0.

Release notes

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

v2.20.0

Changelog

  • 37f4367 Add more mkdocs documentation, examples etc
  • f15fc08 Add scaffolding for mkdocs
  • 91fc584 Create index.html
  • 3157eaf Create static.yml
  • 5440b18 Implement proposed changes to generator
  • 35c6990 Merge pull request #538 from dlwyatt/improveValueProviders
  • 632f81c Merge pull request #542 from LandonTClipp/docs
  • 93af858 Merge pull request #543 from LandonTClipp/docs
  • 94da44d Merge pull request #544 from LandonTClipp/mkdocs
  • 22fb404 Remove blank line after r-var declarations
  • 2c58128 Update README.md
  • 15f76b9 Update comment
  • cbaa47b Update generated code in readme
  • a089d66 Update mkdocs.yml
  • cd93daa Update mkdocs.yml
  • 6cad8ec Update to docs index
  • 2e95447 Use template to generate mock methods
  • 4b5d37f don't need to set working dir
  • b663aee remove bad mocks

v2.19.0

Changelog

  • c98782f Add --inpackage-suffix option
  • 347308c Merge branch 'master' into add-option-filename-prefix-suffix
  • e543651 Merge pull request #453 from grongor/add-option-filename-prefix-suffix
  • f6ff7ae Update README.md
  • 6f474cf Update README.md
Changelog

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

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
    },
)

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

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.

v2.13.0: Generics support

Mocks are now capable of supporting Golang generics.

v2.11.0: Mock constructors

Mockery v2.11 introduces constructors for all mocks. This makes instantiation and mock registration a bit easier and less error-prone (you won't have to worry about forgetting the AssertExpectations method call anymore).

Before v2.11:

factory := &mocks.Factory{}
</tr></table> 

... (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.18.0 to 2.20.0.
- [Release notes](https://github.com/vektra/mockery/releases)
- [Changelog](https://github.com/vektra/mockery/blob/master/docs/changelog.md)
- [Commits](vektra/mockery@v2.18.0...v2.20.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 Feb 12, 2023
@codecov
Copy link

codecov bot commented Feb 12, 2023

Codecov Report

Merging #62 (3b20e29) into master (dc74809) will increase coverage by 0.06%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #62      +/-   ##
==========================================
+ Coverage   85.58%   85.64%   +0.06%     
==========================================
  Files          93       93              
  Lines        4585     4585              
==========================================
+ Hits         3924     3927       +3     
+ Misses        491      489       -2     
+ Partials      170      169       -1     

@fastcat fastcat merged commit bad419a into master Feb 21, 2023
@fastcat fastcat deleted the dependabot/go_modules/github.com/vektra/mockery/v2-2.20.0 branch February 21, 2023 20:45
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.

1 participant