mirror of
https://github.com/actions-runner-controller/actions-runner-controller.git
synced 2026-09-30 03:53:12 +02:00
lazycopy.go introduces deepCopyObject, a generic type constraint rather than a collaborator, and the package's "all: true" mockery config picks it up and emits a large mock that nothing can use. Switch the package to an explicit include/exclude regex pair so every other interface is still discovered automatically while deepCopyObject is skipped. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
22 lines
639 B
YAML
22 lines
639 B
YAML
all: false
|
|
dir: "{{.InterfaceDir}}"
|
|
filename: mocks_test.go
|
|
force-file-write: true
|
|
formatter: goimports
|
|
log-level: info
|
|
structname: "{{.Mock}}{{.InterfaceName}}"
|
|
pkgname: "{{.SrcPackageName}}"
|
|
recursive: false
|
|
template: testify
|
|
packages:
|
|
github.com/actions/actions-runner-controller/cmd/ghalistener/metrics:
|
|
config:
|
|
all: true
|
|
github.com/actions/actions-runner-controller/controllers/actions.github.com:
|
|
config:
|
|
all: false
|
|
include-interface-regex: ".*"
|
|
# deepCopyObject is a generic type constraint, not a collaborator, so it
|
|
# must not be mocked.
|
|
exclude-interface-regex: "^deepCopyObject$"
|