Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

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

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages