-
Notifications
You must be signed in to change notification settings - Fork 161
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Requested feature The ability to specify build constraints to be added with //go:build <constraints> in the generated files.
Why the feature is needed Generated mocks are intended for testing but are regularly in non _test.go files to allow for cross-package imports. This risks the leakage of test-only code into production, which can easily be prevented with build constraints (example).
(Optional) Proposed solution #191
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request