-
Notifications
You must be signed in to change notification settings - Fork 19
/
node_mock.go
140 lines (119 loc) · 4.9 KB
/
node_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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
// Code generated by MockGen. DO NOT EDIT.
// Source: code.vegaprotocol.io/vega/wallet/api/node (interfaces: GRPCAdapter)
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
reflect "reflect"
v1 "code.vegaprotocol.io/vega/protos/vega/api/v1"
types "code.vegaprotocol.io/vega/wallet/api/node/types"
gomock "github.com/golang/mock/gomock"
)
// MockGRPCAdapter is a mock of GRPCAdapter interface.
type MockGRPCAdapter struct {
ctrl *gomock.Controller
recorder *MockGRPCAdapterMockRecorder
}
// MockGRPCAdapterMockRecorder is the mock recorder for MockGRPCAdapter.
type MockGRPCAdapterMockRecorder struct {
mock *MockGRPCAdapter
}
// NewMockGRPCAdapter creates a new mock instance.
func NewMockGRPCAdapter(ctrl *gomock.Controller) *MockGRPCAdapter {
mock := &MockGRPCAdapter{ctrl: ctrl}
mock.recorder = &MockGRPCAdapterMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockGRPCAdapter) EXPECT() *MockGRPCAdapterMockRecorder {
return m.recorder
}
// CheckTransaction mocks base method.
func (m *MockGRPCAdapter) CheckTransaction(arg0 context.Context, arg1 *v1.CheckTransactionRequest) (*v1.CheckTransactionResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CheckTransaction", arg0, arg1)
ret0, _ := ret[0].(*v1.CheckTransactionResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CheckTransaction indicates an expected call of CheckTransaction.
func (mr *MockGRPCAdapterMockRecorder) CheckTransaction(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckTransaction", reflect.TypeOf((*MockGRPCAdapter)(nil).CheckTransaction), arg0, arg1)
}
// Host mocks base method.
func (m *MockGRPCAdapter) Host() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Host")
ret0, _ := ret[0].(string)
return ret0
}
// Host indicates an expected call of Host.
func (mr *MockGRPCAdapterMockRecorder) Host() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Host", reflect.TypeOf((*MockGRPCAdapter)(nil).Host))
}
// LastBlock mocks base method.
func (m *MockGRPCAdapter) LastBlock(arg0 context.Context) (types.LastBlock, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "LastBlock", arg0)
ret0, _ := ret[0].(types.LastBlock)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// LastBlock indicates an expected call of LastBlock.
func (mr *MockGRPCAdapterMockRecorder) LastBlock(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LastBlock", reflect.TypeOf((*MockGRPCAdapter)(nil).LastBlock), arg0)
}
// SpamStatistics mocks base method.
func (m *MockGRPCAdapter) SpamStatistics(arg0 context.Context, arg1 string) (types.SpamStatistics, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SpamStatistics", arg0, arg1)
ret0, _ := ret[0].(types.SpamStatistics)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// SpamStatistics indicates an expected call of SpamStatistics.
func (mr *MockGRPCAdapterMockRecorder) SpamStatistics(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SpamStatistics", reflect.TypeOf((*MockGRPCAdapter)(nil).SpamStatistics), arg0, arg1)
}
// Statistics mocks base method.
func (m *MockGRPCAdapter) Statistics(arg0 context.Context) (types.Statistics, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Statistics", arg0)
ret0, _ := ret[0].(types.Statistics)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Statistics indicates an expected call of Statistics.
func (mr *MockGRPCAdapterMockRecorder) Statistics(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Statistics", reflect.TypeOf((*MockGRPCAdapter)(nil).Statistics), arg0)
}
// Stop mocks base method.
func (m *MockGRPCAdapter) Stop() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Stop")
ret0, _ := ret[0].(error)
return ret0
}
// Stop indicates an expected call of Stop.
func (mr *MockGRPCAdapterMockRecorder) Stop() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockGRPCAdapter)(nil).Stop))
}
// SubmitTransaction mocks base method.
func (m *MockGRPCAdapter) SubmitTransaction(arg0 context.Context, arg1 *v1.SubmitTransactionRequest) (*v1.SubmitTransactionResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SubmitTransaction", arg0, arg1)
ret0, _ := ret[0].(*v1.SubmitTransactionResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// SubmitTransaction indicates an expected call of SubmitTransaction.
func (mr *MockGRPCAdapterMockRecorder) SubmitTransaction(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubmitTransaction", reflect.TypeOf((*MockGRPCAdapter)(nil).SubmitTransaction), arg0, arg1)
}