You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
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
The text was updated successfully, but these errors were encountered: