Skip to content

Commit b2e0ea9

Browse files
upgrade mockery to v3 (#561)
1 parent 2f15a5a commit b2e0ea9

File tree

9 files changed

+741
-698
lines changed

9 files changed

+741
-698
lines changed

.mockery.yaml

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

.mockery.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
dir: '{{.InterfaceDir}}/mocks'
2+
structname: '{{.InterfaceName}}'
3+
filename: "{{.InterfaceName}}.go"
4+
pkgname: mocks
5+
template: testify
6+
template-data:
7+
unroll-variadic: true
8+
packages:
9+
github.com/creativeprojects/resticprofile/config:
10+
interfaces:
11+
NamedPropertySet: {}
12+
ProfileInfo: {}
13+
PropertyInfo: {}
14+
SectionInfo: {}
15+
github.com/creativeprojects/resticprofile/monitor:
16+
interfaces:
17+
OutputAnalysis: {}
18+
github.com/creativeprojects/resticprofile/schedule:
19+
interfaces:
20+
Handler: {}

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ $(GOBIN)/github-markdown-toc.go: verify $(GOBIN)/eget
9494

9595
$(GOBIN)/mockery: verify $(GOBIN)/eget
9696
@echo "[*] $@"
97-
"$(GOBIN)/eget" vektra/mockery --tag v2.53.5 --upgrade-only --to '$(GOBIN)'
97+
"$(GOBIN)/eget" vektra/mockery --upgrade-only --to '$(GOBIN)'
9898

9999
$(GOBIN)/golangci-lint: verify $(GOBIN)/eget
100100
@echo "[*] $@"
@@ -114,7 +114,7 @@ prepare_build: verify download
114114
prepare_test: verify download $(GOBIN)/mockery ## Generate mocks
115115
@echo "[*] $@"
116116
find . -path "*/mocks/*" -exec rm {} \;
117-
"$(GOBIN)/mockery" --config .mockery.yaml
117+
"$(GOBIN)/mockery" --config .mockery.yml
118118

119119
download: verify ## Download dependencies
120120
@echo "[*] $@"

0 commit comments

Comments
 (0)