mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
Update mockery before generate mocks (#9250)
This commit is contained in:
committed by
Joram Wilander
parent
620d55810d
commit
54846fdad2
@@ -275,15 +275,15 @@ gofmt: ## Runs gofmt against all packages.
|
||||
@echo "gofmt success"; \
|
||||
|
||||
store-mocks: ## Creates mock files.
|
||||
go get github.com/vektra/mockery/...
|
||||
go get -u github.com/vektra/mockery/...
|
||||
$(GOPATH)/bin/mockery -dir store -all -output store/storetest/mocks -note 'Regenerate this file using `make store-mocks`.'
|
||||
|
||||
ldap-mocks: ## Creates mock files for ldap.
|
||||
go get github.com/vektra/mockery/...
|
||||
go get -u github.com/vektra/mockery/...
|
||||
$(GOPATH)/bin/mockery -dir enterprise/ldap -all -output enterprise/ldap/mocks -note 'Regenerate this file using `make ldap-mocks`.'
|
||||
|
||||
plugin-mocks: ## Creates mock files for plugins.
|
||||
go get github.com/vektra/mockery/...
|
||||
go get -u github.com/vektra/mockery/...
|
||||
$(GOPATH)/bin/mockery -dir plugin -name API -output plugin/plugintest -outpkg plugintest -case underscore -note 'Regenerate this file using `make plugin-mocks`.'
|
||||
$(GOPATH)/bin/mockery -dir plugin -name Hooks -output plugin/plugintest -outpkg plugintest -case underscore -note 'Regenerate this file using `make plugin-mocks`.'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user