Skip to content

Commit

Permalink
PMM-7 Update mockery to v2 (#2323)
Browse files Browse the repository at this point in the history
* Bump github.com/vektra/mockery in /tools

Bumps [github.com/vektra/mockery](https://github.com/vektra/mockery) from 1.1.2 to 2.30.8+incompatible.
- [Release notes](https://github.com/vektra/mockery/releases)
- [Changelog](https://github.com/vektra/mockery/blob/master/docs/changelog.md)
- [Commits](vektra/mockery@v1.1.2...v2.30.8)

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

Signed-off-by: dependabot[bot] <[email protected]>

* Update mockery to V2

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
artemgavrilov and dependabot[bot] authored Jun 28, 2023
1 parent fe8e947 commit d1fd1e3
Show file tree
Hide file tree
Showing 90 changed files with 1,664 additions and 314 deletions.
2 changes: 1 addition & 1 deletion admin/commands/pmm/server/docker/deps.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/percona/pmm/admin/pkg/docker"
)

//go:generate ../../../../../bin/mockery -name=Functions -case=snake -inpkg -testonly
//go:generate ../../../../../bin/mockery --name=Functions --case=snake --inpackage --testonly

// Functions contain methods required to interact with Docker.
type Functions interface { //nolint:interfacebloat
Expand Down
72 changes: 57 additions & 15 deletions admin/commands/pmm/server/docker/mock_functions_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions agent/agentlocal/deps.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"github.com/percona/pmm/api/agentpb"
)

//go:generate ../../bin/mockery -name=client -case=snake -inpkg -testonly
//go:generate ../../bin/mockery -name=supervisor -case=snake -inpkg -testonly
//go:generate ../../bin/mockery --name=client --case=snake --inpackage --testonly
//go:generate ../../bin/mockery --name=supervisor --case=snake --inpackage --testonly

// client is a subset of methods of client.Client used by this package.
// We use it instead of real type for testing and to avoid dependency cycle.
Expand Down
24 changes: 21 additions & 3 deletions agent/agentlocal/mock_client_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 16 additions & 1 deletion agent/agentlocal/mock_supervisor_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions agent/client/deps.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"github.com/percona/pmm/api/agentpb"
)

//go:generate ../../bin/mockery -name=connectionChecker -case=snake -inpkg -testonly
//go:generate ../../bin/mockery -name=supervisor -case=snake -inpkg -testonly
//go:generate ../../bin/mockery --name=connectionChecker --case=snake --inpackage --testonly
//go:generate ../../bin/mockery --name=supervisor --case=snake --inpackage --testonly

// connectionChecker is a subset of methods of connectionchecker.ConnectionChecker used by this package.
// We use it instead of real type for testing and to avoid dependency cycle.
Expand Down
17 changes: 16 additions & 1 deletion agent/client/mock_connection_checker_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 20 additions & 2 deletions agent/client/mock_supervisor_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d1fd1e3

Please sign in to comment.