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 441b3a9d54 Update project structure 11 months ago
..
README.md Update project structure 11 months ago
func_thing.go Update project structure 11 months ago
func_thing_test.go Update project structure 11 months ago
go.mod Update project structure 11 months 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.