This repo conains different kinds of golang test methods. I hope that will be useful.
- Normal test
- Table design test
- Assertion logic
- TestMain function
- Parallel testing
- Subtest logic
- Testing API endpoints with httptest
- Testing gin framework API endpoints with httptest
- Database test
- Mocking
- Code coverage