Right way to return mocked rows using testify/mock

后端 未结 0 1445
死守一世寂寞
死守一世寂寞 2020-11-30 08:16

I have the following test on my Go project :

func TestGetUsersOk(t *testing.T) {
    var mockDBProvider = &DBProviderMock{}
    mockDBProvider.On("Qu         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题