Closed gertcuykens closed 5 years ago
@gertcuykens Thanks for the proposal.
If you can make it so it follows the go test guidelines and generated code nothing more then a _test package or _test.go file then no proposal is needed. I maybe was thinking there where other details that doesn't fit in go test but your right, if you can make changes so it's clear _test packages and _test files are the way to go that would be awesome, because everybody will be doing it the same way if you guide them to do so
Currently the the default
package mock_name
is the oposite ofpackage name_test
naming convention. Can this be revisited so we havename_mock
andname_test
and also take some time to investigate if it would be interesting for Go2 to add_mock
files into the specification espacialy guidelines on go modules mocking?This is how I use mockgen at the moment but others use totally diferent approach, I believe mocking is important enough to have a bit more direct specifications in Go2.