Run go generate (#119)

Minor changes to generated test file because of #110.
This commit is contained in:
Suhas Karanth 2020-01-06 18:41:00 +05:30 committed by GitHub
parent 4203548722
commit 75d0ddfc00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,22 +12,22 @@ var (
lockServiceMockUser sync.RWMutex
)
// Ensure, that ServiceMock does implement Service.
// Ensure, that ServiceMock does implement dotimport.Service.
// If this is not the case, regenerate this file with moq.
var _ dotimport.Service = &ServiceMock{}
// ServiceMock is a mock implementation of Service.
// ServiceMock is a mock implementation of dotimport.Service.
//
// func TestSomethingThatUsesService(t *testing.T) {
//
// // make and configure a mocked Service
// // make and configure a mocked dotimport.Service
// mockedService := &ServiceMock{
// UserFunc: func(ID string) (dotimport.User, error) {
// panic("mock out the User method")
// },
// }
//
// // use mockedService in code that requires Service
// // use mockedService in code that requires dotimport.Service
// // and then make assertions.
//
// }