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
Currently, the tests written for this project are in a separate tests folder. It's best practice in Go putting each test inside the package that defines what is to be tested. For example:
Currently, the tests written for this project are in a separate tests folder. It's best practice in Go putting each test inside the package that defines what is to be tested. For example:
Note that there are some cases where tests can be put in a separate folder, but it's pretty uncommon.
We can use some open source projects for guidance:
https://github.com/kubernetes/kubernetes/tree/master/pkg/controlplane
https://github.com/tsuru/tsuru/tree/master/api
https://github.com/cockroachdb/cockroach/tree/master/pkg/base
https://github.com/golang/go/tree/master/src/bytes (Go's standard bytes package)
The text was updated successfully, but these errors were encountered: