Skip to content

yakuter/go-test-examples

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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