Using Mock and Interface for Golang Unit Testing
At work, I often find that many engineers' Golang unit tests are problematic, just simply calling code for output, and it will include various IO operations, making the unit test unable to run everywhere.
Using Mock and Interface for Golang Unit Testing This article will introduce how to do unit testing correctly in Golang.
What is unit testing? Characteristics of unit testing Unit testing is a very important part of quality assurance.