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
35 changes: 16 additions & 19 deletions .mockery.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
with-expecter: true
# Deliberately not gen/mocks/{{.InterfaceDirRelative}}: since every interface here
# lives under an "internal/" source directory, that pattern would produce paths
# like gen/mocks/internal/schema, which Go's internal-import rule then restricts
# to only be importable from within gen/mocks/** — unusable from _test.go files
# living under internal/**, which is the whole point of generating these mocks.
dir: gen/mocks/{{.PackageName}}
mockname: "Mock{{.InterfaceName}}"
outpkg: "{{.PackageName}}"
filename: "{{.InterfaceName|snakecase}}_mock.go"
dir: gen/mocks/{{trimPrefix "internal/" .InterfaceDirRelative}}
structname: Mock{{.InterfaceName}}
pkgname: '{{.SrcPackageName}}'
filename: '{{.InterfaceName | snakecase}}_mock.go'
template: testify
template-data:
unroll-variadic: true
packages:
github.com/ChargePi/chargeflow-registry/internal/schema:
interfaces:
Repository:
Cache:
github.com/ChargePi/chargeflow-registry/internal/grpc:
interfaces:
SchemaService:
ValidationService:
AdminService:
AdminService: {}
SchemaService: {}
ValidationService: {}
github.com/ChargePi/chargeflow-registry/internal/schema:
interfaces:
Cache: {}
Repository: {}
github.com/ChargePi/chargeflow-registry/internal/validation:
interfaces:
SchemaGetter:
SchemaGetter: {}
github.com/ChargePi/chargeflow-registry/internal/mcp:
interfaces:
SchemaRegistry:
SchemaRegistry: {}
161 changes: 110 additions & 51 deletions gen/mocks/grpc/admin_service_mock.go

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

Loading
Loading