Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .mockery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
all: true
recursive: true
dir: pkg/test/mocks/
filename: "{{.InterfaceName}}.go"
pkgname: mocks
packages:
github.com/metal-stack/masterdata-api/api/v1:
github.com/metal-stack/masterdata-api/pkg/datastore:
10 changes: 2 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,12 @@ client:

.PHONY: mocks
mocks:
rm -rf pkg/datastore/mocks api/v1/mocks
rm -rf pkg/test/mocks
docker run --rm \
--user $$(id -u):$$(id -g) \
-w /work \
-v ${PWD}:/work \
vektra/mockery:v2.53.3 -r --keeptree --dir api/v1 --output api/v1/mocks --all

docker run --rm \
--user $$(id -u):$$(id -g) \
-w /work \
-v ${PWD}:/work \
vektra/mockery:v2.53.3 -r --keeptree --dir pkg/datastore --output pkg/datastore/mocks --all
vektra/mockery:v3.5.4

.PHONY: postgres-up
postgres-up: postgres-rm
Expand Down
217 changes: 0 additions & 217 deletions api/v1/mocks/ProjectMemberServiceClient.go

This file was deleted.

Loading