-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserver_mock.go
51 lines (42 loc) · 1.24 KB
/
server_mock.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package uim
import (
"reflect"
"github.com/golang/mock/gomock"
)
// MockService is a mock of Service interface.
type MockService struct {
ctrl *gomock.Controller
recorder *MockServiceMockRecorder
}
// MockServiceMockRecorder is the mock recorder for MockService.
type MockServiceMockRecorder struct {
mock *MockService
}
func NewMockService(crtl *gomock.Controller) *MockService {
mock := &MockService{ctrl: crtl}
mock.recorder = &MockServiceMockRecorder{mock: mock}
return mock
}
// EXPECT return s an object tha allows the caller to indicate expected use.
func (m *MockService) EXPECT() *MockServiceMockRecorder {
return m.recorder
}
// GetMeta mocks base method.
func (m *MockService) GetMeta() map[string]string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetMeta")
ret0, _ := ret[0].(map[string]string)
return ret0
}
// GetMeta indicates an expected call of GetMeta.
func (mr *MockServiceMockRecorder) GetMeta() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMeta", reflect.TypeOf((*MockService)(nil).GetMeta()))
}
// ServiceID mocks base method.
func (m *MockService) ServiceID() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ServiceID")
ret0, _ := ret[0].(string)
return ret0
}