Go Built-in Unit Testing

Naming conventions ( prefix with underscore) suffix with underscore with the filename. For example, the hello.go is the source file then hello.go with test package will have the filename hello_test.go tells the go test command that this file contains test functions. hello_test.go Testing package Importing the testing package is a must to be included along with other imported… Continue reading Go Built-in Unit Testing

Categorized as Go, Testing