Skip to content

Commit

Permalink
re-generate mockery mocks with new version (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
SVilgelm authored Jun 5, 2022
1 parent e976136 commit a9005f6
Show file tree
Hide file tree
Showing 11 changed files with 73 additions and 39 deletions.
5 changes: 4 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ linters-settings:
govet:
check-shadowing: false
gci:
local-prefixes: github.com/sv-tools/mongoifc
sections:
- standard
- default
- prefix(github.com/sv-tools/mongoifc)
gocognit:
min-complexity: 15
gocyclo:
Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ go-install:
@echo "$(OK_COLOR)==> Checking and installing dependencies using go install...$(NO_COLOR)"
@go install github.com/golang/mock/mockgen@v1
@go install github.com/vektra/mockery/v2@v2
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest

run-test:
@echo "$(OK_COLOR)==> Testing...$(NO_COLOR)"
Expand Down Expand Up @@ -59,6 +60,9 @@ run-mockgen:
@mockgen -destination=mocks/gomock/mocks.go -package mocks . ChangeStream,Client,Collection,Cursor,Database,IndexView,Session,SingleResult,SessionContext

run-mockery:
@mockery --all --output mocks/mockery --disable-version-string --case underscore
@mockery --all --srcpkg github.com/sv-tools/mongoifc --output mocks/mockery --disable-version-string --case underscore

generate-mocks: run-mockgen run-mockery
clean-mocks:
@rm -rf mocks

generate-mocks: clean-mocks run-mockgen run-mockery
11 changes: 7 additions & 4 deletions mocks/mockery/change_stream.go

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

11 changes: 7 additions & 4 deletions mocks/mockery/client.go

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

11 changes: 7 additions & 4 deletions mocks/mockery/collection.go

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

11 changes: 7 additions & 4 deletions mocks/mockery/cursor.go

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

11 changes: 7 additions & 4 deletions mocks/mockery/database.go

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

11 changes: 7 additions & 4 deletions mocks/mockery/index_view.go

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

11 changes: 7 additions & 4 deletions mocks/mockery/session.go

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

11 changes: 7 additions & 4 deletions mocks/mockery/session_context.go

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

11 changes: 7 additions & 4 deletions mocks/mockery/single_result.go

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