Skip to content

Latest commit

 

History

History
15 lines (14 loc) · 370 Bytes

README.md

File metadata and controls

15 lines (14 loc) · 370 Bytes

go-test-examples

This repo conains different kinds of golang test methods. I hope that will be useful.

Subjects:

  1. Normal test
  2. Table design test
  3. Assertion logic
  4. TestMain function
  5. Parallel testing
  6. Subtest logic
  7. Testing API endpoints with httptest
  8. Testing gin framework API endpoints with httptest
  9. Database test
  10. Mocking
  11. Code coverage