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
It would be great if files with the suffix _mock.go were treated like files with the suffix _test.go in that they're only picked up by go test and not compiled when running go run or go build. This would mean that mocks could be stored in the same directory as the definitions that they mimic with meaningful names and not get compiled into production binaries.
The text was updated successfully, but these errors were encountered:
An example of a common go package directory listing;
It would be great if files with the suffix
_mock.go
were treated like files with the suffix_test.go
in that they're only picked up bygo test
and not compiled when runninggo run
orgo build
. This would mean that mocks could be stored in the same directory as the definitions that they mimic with meaningful names and not get compiled into production binaries.The text was updated successfully, but these errors were encountered: