-
Notifications
You must be signed in to change notification settings - Fork 66
/
mock_client.go
75 lines (62 loc) · 2.43 KB
/
mock_client.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/uber/zanzibar/v2/examples/example-gateway/clients/quux (interfaces: IClient)
// Package clientmock is a generated GoMock package.
package clientmock
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
base "github.com/uber/zanzibar/v2/examples/example-gateway/build/gen-code/clients-idl/clients/foo/base/base"
)
// MockIClient is a mock of IClient interface.
type MockIClient struct {
ctrl *gomock.Controller
recorder *MockIClientMockRecorder
}
// MockIClientMockRecorder is the mock recorder for MockIClient.
type MockIClientMockRecorder struct {
mock *MockIClient
}
// NewMockIClient creates a new mock instance.
func NewMockIClient(ctrl *gomock.Controller) *MockIClient {
mock := &MockIClient{ctrl: ctrl}
mock.recorder = &MockIClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockIClient) EXPECT() *MockIClientMockRecorder {
return m.recorder
}
// DropMessages mocks base method.
func (m *MockIClient) DropMessages(arg0, arg1 *base.Message) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "DropMessages", arg0, arg1)
}
// DropMessages indicates an expected call of DropMessages.
func (mr *MockIClientMockRecorder) DropMessages(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DropMessages", reflect.TypeOf((*MockIClient)(nil).DropMessages), arg0, arg1)
}
// EchoMessage mocks base method.
func (m *MockIClient) EchoMessage(arg0 *base.Message) *base.Message {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EchoMessage", arg0)
ret0, _ := ret[0].(*base.Message)
return ret0
}
// EchoMessage indicates an expected call of EchoMessage.
func (mr *MockIClientMockRecorder) EchoMessage(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EchoMessage", reflect.TypeOf((*MockIClient)(nil).EchoMessage), arg0)
}
// EchoString mocks base method.
func (m *MockIClient) EchoString(arg0 string) string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EchoString", arg0)
ret0, _ := ret[0].(string)
return ret0
}
// EchoString indicates an expected call of EchoString.
func (mr *MockIClientMockRecorder) EchoString(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EchoString", reflect.TypeOf((*MockIClient)(nil).EchoString), arg0)
}