These are some jottings and practice + reference code written during the "Go unit, integration, and functional testing" course which I did on Udemy.
In general, there are three types of unit testing performed in Go. They are:
- Unit testing
- Intergation testing
- Functional testing
The hierarchy of unit testing is shown below. Depending on the scope of the unit testing, they increase in the order of details and the coverage of the functionality.
Fig shows logical scope and placement of various unit testing performed from the perspective of system architecture.



