Skip to content

Prashant-Bhatt/go-echo-api-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-echo-api-test

Go server with api test package for unit testing Unit testing with mocking objects

Conatains One Post and one Get function and unit test functions for both of these

e.GET("/orgs", getAllOrganisation)

e.POST("/orgs", createOrganisation)

POST function uses a map to store organisation temporarily. To achieve unit testing in get function I have mocked the output because of temporary storage in map.

About

Go server with api test with unit testing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages