-
Notifications
You must be signed in to change notification settings - Fork 660
/
mock_manager.go
224 lines (191 loc) · 7.12 KB
/
mock_manager.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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/ava-labs/avalanchego/vms (interfaces: Factory,Manager)
//
// Generated by this command:
//
// mockgen -package=vms -destination=vms/mock_manager.go github.com/ava-labs/avalanchego/vms Factory,Manager
//
// Package vms is a generated GoMock package.
package vms
import (
context "context"
reflect "reflect"
ids "github.com/ava-labs/avalanchego/ids"
logging "github.com/ava-labs/avalanchego/utils/logging"
gomock "go.uber.org/mock/gomock"
)
// MockFactory is a mock of Factory interface.
type MockFactory struct {
ctrl *gomock.Controller
recorder *MockFactoryMockRecorder
}
// MockFactoryMockRecorder is the mock recorder for MockFactory.
type MockFactoryMockRecorder struct {
mock *MockFactory
}
// NewMockFactory creates a new mock instance.
func NewMockFactory(ctrl *gomock.Controller) *MockFactory {
mock := &MockFactory{ctrl: ctrl}
mock.recorder = &MockFactoryMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockFactory) EXPECT() *MockFactoryMockRecorder {
return m.recorder
}
// New mocks base method.
func (m *MockFactory) New(arg0 logging.Logger) (any, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "New", arg0)
ret0, _ := ret[0].(any)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// New indicates an expected call of New.
func (mr *MockFactoryMockRecorder) New(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "New", reflect.TypeOf((*MockFactory)(nil).New), arg0)
}
// MockManager is a mock of Manager interface.
type MockManager struct {
ctrl *gomock.Controller
recorder *MockManagerMockRecorder
}
// MockManagerMockRecorder is the mock recorder for MockManager.
type MockManagerMockRecorder struct {
mock *MockManager
}
// NewMockManager creates a new mock instance.
func NewMockManager(ctrl *gomock.Controller) *MockManager {
mock := &MockManager{ctrl: ctrl}
mock.recorder = &MockManagerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockManager) EXPECT() *MockManagerMockRecorder {
return m.recorder
}
// Alias mocks base method.
func (m *MockManager) Alias(arg0 ids.ID, arg1 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Alias", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// Alias indicates an expected call of Alias.
func (mr *MockManagerMockRecorder) Alias(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Alias", reflect.TypeOf((*MockManager)(nil).Alias), arg0, arg1)
}
// Aliases mocks base method.
func (m *MockManager) Aliases(arg0 ids.ID) ([]string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Aliases", arg0)
ret0, _ := ret[0].([]string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Aliases indicates an expected call of Aliases.
func (mr *MockManagerMockRecorder) Aliases(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Aliases", reflect.TypeOf((*MockManager)(nil).Aliases), arg0)
}
// GetFactory mocks base method.
func (m *MockManager) GetFactory(arg0 ids.ID) (Factory, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetFactory", arg0)
ret0, _ := ret[0].(Factory)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetFactory indicates an expected call of GetFactory.
func (mr *MockManagerMockRecorder) GetFactory(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFactory", reflect.TypeOf((*MockManager)(nil).GetFactory), arg0)
}
// ListFactories mocks base method.
func (m *MockManager) ListFactories() ([]ids.ID, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListFactories")
ret0, _ := ret[0].([]ids.ID)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListFactories indicates an expected call of ListFactories.
func (mr *MockManagerMockRecorder) ListFactories() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFactories", reflect.TypeOf((*MockManager)(nil).ListFactories))
}
// Lookup mocks base method.
func (m *MockManager) Lookup(arg0 string) (ids.ID, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Lookup", arg0)
ret0, _ := ret[0].(ids.ID)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Lookup indicates an expected call of Lookup.
func (mr *MockManagerMockRecorder) Lookup(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Lookup", reflect.TypeOf((*MockManager)(nil).Lookup), arg0)
}
// PrimaryAlias mocks base method.
func (m *MockManager) PrimaryAlias(arg0 ids.ID) (string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PrimaryAlias", arg0)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// PrimaryAlias indicates an expected call of PrimaryAlias.
func (mr *MockManagerMockRecorder) PrimaryAlias(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrimaryAlias", reflect.TypeOf((*MockManager)(nil).PrimaryAlias), arg0)
}
// PrimaryAliasOrDefault mocks base method.
func (m *MockManager) PrimaryAliasOrDefault(arg0 ids.ID) string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PrimaryAliasOrDefault", arg0)
ret0, _ := ret[0].(string)
return ret0
}
// PrimaryAliasOrDefault indicates an expected call of PrimaryAliasOrDefault.
func (mr *MockManagerMockRecorder) PrimaryAliasOrDefault(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrimaryAliasOrDefault", reflect.TypeOf((*MockManager)(nil).PrimaryAliasOrDefault), arg0)
}
// RegisterFactory mocks base method.
func (m *MockManager) RegisterFactory(arg0 context.Context, arg1 ids.ID, arg2 Factory) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RegisterFactory", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// RegisterFactory indicates an expected call of RegisterFactory.
func (mr *MockManagerMockRecorder) RegisterFactory(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterFactory", reflect.TypeOf((*MockManager)(nil).RegisterFactory), arg0, arg1, arg2)
}
// RemoveAliases mocks base method.
func (m *MockManager) RemoveAliases(arg0 ids.ID) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "RemoveAliases", arg0)
}
// RemoveAliases indicates an expected call of RemoveAliases.
func (mr *MockManagerMockRecorder) RemoveAliases(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveAliases", reflect.TypeOf((*MockManager)(nil).RemoveAliases), arg0)
}
// Versions mocks base method.
func (m *MockManager) Versions() (map[string]string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Versions")
ret0, _ := ret[0].(map[string]string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Versions indicates an expected call of Versions.
func (mr *MockManagerMockRecorder) Versions() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Versions", reflect.TypeOf((*MockManager)(nil).Versions))
}