Skip to content

Commit

Permalink
test: use build tag for mocks
Browse files Browse the repository at this point in the history
Prevents accidental use in production

Signed-off-by: Michael Adler <[email protected]>
  • Loading branch information
michaeladler committed Mar 10, 2025
1 parent 35fd6be commit d12705b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ filename: "mock_{{.InterfaceName}}.go"
all: True

boilerplate-file: .ci/mockery_header.txt
# tags are currently broken, see vektra/mockery issue #691
tags: testing
mock-build-tags: testing

packages:
github.com/siemens/wfx/persistence:
config:
tags: testing
recursive: True
interfaces:
Storage:
2 changes: 2 additions & 0 deletions persistence/mock_Storage.go

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

0 comments on commit d12705b

Please sign in to comment.