Golang: How to mock test
3 min readJul 10, 2021
--
Hello folks, though we are passing a critical time due to the COVID-19 pandemic I hope you all are well and safe.
In software development one of the major & critical parts is software testing. Testing can vary in type. Today you will learn how you can implement mock testing in your Golang project.
What is the mock test?
Mock testing is an approach to unit testing that lets you make assertions about how the code under test is interacting with other system modules. In mock testing, the dependencies are replaced with objects…