Files
actions-runner-controller/.mockery.yaml
T
Nikola JokicandCopilot App 9b4c03e312 Do not generate a mock for the deepCopyObject constraint
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>
2026-09-12 23:28:18 +02:00

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$"