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>
This commit is contained in:
Nikola Jokic
2026-09-11 11:32:03 +02:00
co-authored by Copilot App
parent a7ce96b76c
commit 953e24669d
+5 -1
View File
@@ -14,4 +14,8 @@ packages:
all: true
github.com/actions/actions-runner-controller/controllers/actions.github.com:
config:
all: true
all: false
include-interface-regex: ".*"
# deepCopyObject is a generic type constraint, not a collaborator, so it
# must not be mocked.
exclude-interface-regex: "^deepCopyObject$"