Skip to content

yakuter/go-test-examples

Repository files navigation

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

About

Go Unit Test examples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published