You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Drew Bednar 9f1bb5ddc0 add coursera 1 year ago
..
README.md add coursera 1 year ago
func_thing.go add coursera 1 year ago
func_thing_test.go add coursera 1 year ago
go.mod add coursera 1 year ago

README.md

Functions

Unit Tests

Ok from what I can tell a file for unit tests should end in _test.go matching the file name it is testing (covention?) Tests of functions should begin with TestFuncNameOrTestScenario(t *testing.T). The t *testing.T is pointer to a testing.T object which is a struct with that provides methods for writing unit tests.

Then you use go test to run the unit tests.