mirror of
https://github.com/actions-runner-controller/actions-runner-controller.git
synced 2026-09-30 09:51:33 +02:00
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:
co-authored by
Copilot App
parent
a7ce96b76c
commit
953e24669d
+5
-1
@@ -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$"
|
||||
|
||||
Reference in New Issue
Block a user