-
Notifications
You must be signed in to change notification settings - Fork 660
/
mock_fx.go
206 lines (173 loc) · 6.18 KB
/
mock_fx.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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
// Code generated by MockGen. DO NOT EDIT.
// Source: vms/platformvm/fx/fx.go
// Package fx is a generated GoMock package.
package fx
import (
reflect "reflect"
snow "github.com/ava-labs/avalanchego/snow"
gomock "github.com/golang/mock/gomock"
)
// MockFx is a mock of Fx interface.
type MockFx struct {
ctrl *gomock.Controller
recorder *MockFxMockRecorder
}
// MockFxMockRecorder is the mock recorder for MockFx.
type MockFxMockRecorder struct {
mock *MockFx
}
// NewMockFx creates a new mock instance.
func NewMockFx(ctrl *gomock.Controller) *MockFx {
mock := &MockFx{ctrl: ctrl}
mock.recorder = &MockFxMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockFx) EXPECT() *MockFxMockRecorder {
return m.recorder
}
// Bootstrapped mocks base method.
func (m *MockFx) Bootstrapped() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Bootstrapped")
ret0, _ := ret[0].(error)
return ret0
}
// Bootstrapped indicates an expected call of Bootstrapped.
func (mr *MockFxMockRecorder) Bootstrapped() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bootstrapped", reflect.TypeOf((*MockFx)(nil).Bootstrapped))
}
// Bootstrapping mocks base method.
func (m *MockFx) Bootstrapping() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Bootstrapping")
ret0, _ := ret[0].(error)
return ret0
}
// Bootstrapping indicates an expected call of Bootstrapping.
func (mr *MockFxMockRecorder) Bootstrapping() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bootstrapping", reflect.TypeOf((*MockFx)(nil).Bootstrapping))
}
// CreateOutput mocks base method.
func (m *MockFx) CreateOutput(amount uint64, controlGroup interface{}) (interface{}, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreateOutput", amount, controlGroup)
ret0, _ := ret[0].(interface{})
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CreateOutput indicates an expected call of CreateOutput.
func (mr *MockFxMockRecorder) CreateOutput(amount, controlGroup interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOutput", reflect.TypeOf((*MockFx)(nil).CreateOutput), amount, controlGroup)
}
// Initialize mocks base method.
func (m *MockFx) Initialize(vm interface{}) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Initialize", vm)
ret0, _ := ret[0].(error)
return ret0
}
// Initialize indicates an expected call of Initialize.
func (mr *MockFxMockRecorder) Initialize(vm interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Initialize", reflect.TypeOf((*MockFx)(nil).Initialize), vm)
}
// VerifyPermission mocks base method.
func (m *MockFx) VerifyPermission(tx, in, cred, controlGroup interface{}) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "VerifyPermission", tx, in, cred, controlGroup)
ret0, _ := ret[0].(error)
return ret0
}
// VerifyPermission indicates an expected call of VerifyPermission.
func (mr *MockFxMockRecorder) VerifyPermission(tx, in, cred, controlGroup interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyPermission", reflect.TypeOf((*MockFx)(nil).VerifyPermission), tx, in, cred, controlGroup)
}
// VerifyTransfer mocks base method.
func (m *MockFx) VerifyTransfer(tx, in, cred, utxo interface{}) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "VerifyTransfer", tx, in, cred, utxo)
ret0, _ := ret[0].(error)
return ret0
}
// VerifyTransfer indicates an expected call of VerifyTransfer.
func (mr *MockFxMockRecorder) VerifyTransfer(tx, in, cred, utxo interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyTransfer", reflect.TypeOf((*MockFx)(nil).VerifyTransfer), tx, in, cred, utxo)
}
// MockOwner is a mock of Owner interface.
type MockOwner struct {
ctrl *gomock.Controller
recorder *MockOwnerMockRecorder
}
// MockOwnerMockRecorder is the mock recorder for MockOwner.
type MockOwnerMockRecorder struct {
mock *MockOwner
}
// NewMockOwner creates a new mock instance.
func NewMockOwner(ctrl *gomock.Controller) *MockOwner {
mock := &MockOwner{ctrl: ctrl}
mock.recorder = &MockOwnerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockOwner) EXPECT() *MockOwnerMockRecorder {
return m.recorder
}
// InitCtx mocks base method.
func (m *MockOwner) InitCtx(ctx *snow.Context) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "InitCtx", ctx)
}
// InitCtx indicates an expected call of InitCtx.
func (mr *MockOwnerMockRecorder) InitCtx(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitCtx", reflect.TypeOf((*MockOwner)(nil).InitCtx), ctx)
}
// Verify mocks base method.
func (m *MockOwner) Verify() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Verify")
ret0, _ := ret[0].(error)
return ret0
}
// Verify indicates an expected call of Verify.
func (mr *MockOwnerMockRecorder) Verify() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Verify", reflect.TypeOf((*MockOwner)(nil).Verify))
}
// MockOwned is a mock of Owned interface.
type MockOwned struct {
ctrl *gomock.Controller
recorder *MockOwnedMockRecorder
}
// MockOwnedMockRecorder is the mock recorder for MockOwned.
type MockOwnedMockRecorder struct {
mock *MockOwned
}
// NewMockOwned creates a new mock instance.
func NewMockOwned(ctrl *gomock.Controller) *MockOwned {
mock := &MockOwned{ctrl: ctrl}
mock.recorder = &MockOwnedMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockOwned) EXPECT() *MockOwnedMockRecorder {
return m.recorder
}
// Owners mocks base method.
func (m *MockOwned) Owners() interface{} {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Owners")
ret0, _ := ret[0].(interface{})
return ret0
}
// Owners indicates an expected call of Owners.
func (mr *MockOwnedMockRecorder) Owners() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Owners", reflect.TypeOf((*MockOwned)(nil).Owners))
}