#Mocking

1 articles

Techniques for Creating Mocking Unit Tests in Golang

Techniques for Creating Mocking Unit Tests in Golang

When we create a function or code, sometimes we have difficulty carrying out unit tests at several points that we cannot cover with unit tests. So here are several technical ways to carry out unit tests using the mocking technique. But actually we can also use third-party which is already available in several libraries so we just need to use it straight away.