Skip to content

Commit

Permalink
created config file for mockery to replicate make generate-mocks
Browse files Browse the repository at this point in the history
Signed-off-by: jessica lourenco <jess.mailed@gmail.com>
Signed-off-by: jesslourenco <70455379+jesslourenco@users.noreply.github.com>
  • Loading branch information
jesslourenco committed Jun 13, 2024
1 parent 45ee7e6 commit 6852488
Show file tree
Hide file tree
Showing 7 changed files with 270 additions and 342 deletions.
36 changes: 36 additions & 0 deletions .mockery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
with-expecter: false
disable-version-string: true
outpkg: "mocks"
dir: "{{.InterfaceDir}}/mocks/"
filename: "{{ .InterfaceName | snakecase }}.go"
packages:
github.com/jaegertracing/jaeger/pkg/es:
config:
all: true
mockname: "{{.InterfaceName}}"
filename: "{{.InterfaceName}}.go"
github.com/jaegertracing/jaeger/pkg/es/client:
interfaces:
IndexAPI:
config:
filename: "index_client.go"
ClusterAPI:
config:
filename: "cluster_client.go"
IndexManagementLifecycleAPI:
config:
mockname: "MockILMAPI"
filename: "ilm_client.go"
github.com/jaegertracing/jaeger/storage/spanstore:
config:
mockname: "{{.InterfaceName}}"
filename: "{{.InterfaceName}}.go"
interfaces:
Writer:
Reader:
github.com/jaegertracing/jaeger/proto-gen/storage_v1:
config:
all: true
recursive: true
mockname: "{{.InterfaceName}}"
filename: "{{.InterfaceName}}.go"
62 changes: 43 additions & 19 deletions pkg/es/client/mocks/cluster_client.go

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

60 changes: 43 additions & 17 deletions pkg/es/client/mocks/ilm_client.go

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

185 changes: 148 additions & 37 deletions pkg/es/client/mocks/index_client.go

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

Loading

0 comments on commit 6852488

Please # to comment.