Re: [go-nuts] Proper way of mocking interfaces in unit tests - the golang way

2020-10-04 Thread Jesper Louis Andersen
On Thu, Oct 1, 2020 at 6:25 PM Krishna C wrote: > > For unit tests, we need to mock the dependent interfaces either by > creating our own mock implementation of the interface or by using third > party packages like *testify/mocks.* > > Is there any particular reason as to why you want to mock

[go-nuts] Proper way of mocking interfaces in unit tests - the golang way

2020-10-01 Thread Krishna C
We are working on a full scale production app with go backend. For unit tests, we need to mock the dependent interfaces either by creating our own mock implementation of the interface or by using third party packages like *testify/mocks.* If we use testify, there will be a tendency for the