Ensure that all tests are run from the _test package. Tests that need access to internals should be considered for removal unless there are particularly tricky bits that cannot be removed to a dependency. Methods like Generate that are used for testing only will remain in the main package under an exports_test.go package so that they are only exported for testing.
Ensure that all tests are run from the
_test
package. Tests that need access to internals should be considered for removal unless there are particularly tricky bits that cannot be removed to a dependency. Methods likeGenerate
that are used for testing only will remain in the main package under anexports_test.go
package so that they are only exported for testing.