mirror of
https://github.com/absmach/supermq.git
synced 2026-06-23 06:40:19 +00:00
NOISSUE - Simplify generated mocks check
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com>
This commit is contained in:
@@ -113,11 +113,6 @@ install:
|
||||
|
||||
mocks:
|
||||
@which mockery > /dev/null || go install github.com/vektra/mockery/v3@$(MOCKERY_VERSION)
|
||||
rm -r pkg/sdk/mocks \
|
||||
bootstrap/mocks \
|
||||
consumers/notifiers/mocks \
|
||||
re/mocks \
|
||||
provision/mocks
|
||||
mockery --config ./tools/config/.mockery.yaml
|
||||
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ template: testify
|
||||
mockname: "{{.InterfaceName}}"
|
||||
filename: "{{snakecase .InterfaceName}}.go"
|
||||
dir: "{{.InterfaceDirRelative}}/mocks"
|
||||
force-file-write: true
|
||||
template-data:
|
||||
boilerplate-file: ./tools/config/boilerplate.txt
|
||||
with-expecter: true
|
||||
|
||||
Reference in New Issue
Block a user