Golang: How to mock test

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…



Senior Software Engineer @ Twilio | Entrepreneur | Tech Ninja

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store