Testing and Benchmarking Your Web API

Testing is of vital importance in production software environments. Applications not only need to be tested for functionality, but they also need to be benchmarked and profiled so that we can examine the performance of our applications. This chapter will provide a wide and practical exposure about how to properly test and benchmark your application.

In this chapter, we will cover the following topics:

  • Mocking types in Go
  • Unit testing in Go
  • Benchmarking in Go

The code for this chapter can be found in this book's GitHub repository at https://github.com/PacktPublishing/Hands-On-Full-Stack-Development-with-Go/tree/master/Chapter08.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.143.4.181