Skip to content

Commit af309d5

Browse files
authored
Update to mockery v3. (#133)
1 parent b7c2724 commit af309d5

40 files changed

+5611
-2617
lines changed

.mockery.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
all: true
3+
recursive: true
4+
dir: pkg/test/mocks/
5+
filename: "{{.InterfaceName}}.go"
6+
pkgname: mocks
7+
packages:
8+
github.com/metal-stack/masterdata-api/api/v1:
9+
github.com/metal-stack/masterdata-api/pkg/datastore:

Makefile

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,12 @@ client:
5454

5555
.PHONY: mocks
5656
mocks:
57-
rm -rf pkg/datastore/mocks api/v1/mocks
57+
rm -rf pkg/test/mocks
5858
docker run --rm \
5959
--user $$(id -u):$$(id -g) \
6060
-w /work \
6161
-v ${PWD}:/work \
62-
vektra/mockery:v2.53.3 -r --keeptree --dir api/v1 --output api/v1/mocks --all
63-
64-
docker run --rm \
65-
--user $$(id -u):$$(id -g) \
66-
-w /work \
67-
-v ${PWD}:/work \
68-
vektra/mockery:v2.53.3 -r --keeptree --dir pkg/datastore --output pkg/datastore/mocks --all
62+
vektra/mockery:v3.5.4
6963

7064
.PHONY: postgres-up
7165
postgres-up: postgres-rm

api/v1/mocks/ProjectMemberServiceClient.go

Lines changed: 0 additions & 217 deletions
This file was deleted.

0 commit comments

Comments
 (0)