Go Testing
- Ending a file’s name with
_test.gotells thego testcommand that this file contains test functions. - Use function name like
TestSTH, passt *testing.Tas parameter
_test.go tells the go test command that this file contains test functions.TestSTH, pass t *testing.T as parameter