Run go generate (#119)
Minor changes to generated test file because of #110.
This commit is contained in:
parent
4203548722
commit
75d0ddfc00
@ -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.
|
||||
//
|
||||
// }
|
||||
|
Loading…
Reference in New Issue
Block a user