forked from ava-labs/avalanchego
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mock_manager.go
218 lines (185 loc) · 6.93 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
// Code generated by MockGen. DO NOT EDIT.
// Source: vms/manager.go
// Package vms is a generated GoMock package.
package vms
import (
reflect "reflect"
ids "github.com/ava-labs/avalanchego/ids"
snow "github.com/ava-labs/avalanchego/snow"
gomock "github.com/golang/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 *snow.Context) (interface{}, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "New", arg0)
ret0, _ := ret[0].(interface{})
ret1, _ := ret[1].(error)
return ret0, ret1
}
// New indicates an expected call of New.
func (mr *MockFactoryMockRecorder) New(arg0 interface{}) *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(id ids.ID, alias string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Alias", id, alias)
ret0, _ := ret[0].(error)
return ret0
}
// Alias indicates an expected call of Alias.
func (mr *MockManagerMockRecorder) Alias(id, alias interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Alias", reflect.TypeOf((*MockManager)(nil).Alias), id, alias)
}
// Aliases mocks base method.
func (m *MockManager) Aliases(id ids.ID) ([]string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Aliases", id)
ret0, _ := ret[0].([]string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Aliases indicates an expected call of Aliases.
func (mr *MockManagerMockRecorder) Aliases(id interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Aliases", reflect.TypeOf((*MockManager)(nil).Aliases), id)
}
// GetFactory mocks base method.
func (m *MockManager) GetFactory(vmID ids.ID) (Factory, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetFactory", vmID)
ret0, _ := ret[0].(Factory)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetFactory indicates an expected call of GetFactory.
func (mr *MockManagerMockRecorder) GetFactory(vmID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFactory", reflect.TypeOf((*MockManager)(nil).GetFactory), vmID)
}
// 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(alias string) (ids.ID, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Lookup", alias)
ret0, _ := ret[0].(ids.ID)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Lookup indicates an expected call of Lookup.
func (mr *MockManagerMockRecorder) Lookup(alias interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Lookup", reflect.TypeOf((*MockManager)(nil).Lookup), alias)
}
// PrimaryAlias mocks base method.
func (m *MockManager) PrimaryAlias(id ids.ID) (string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PrimaryAlias", id)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// PrimaryAlias indicates an expected call of PrimaryAlias.
func (mr *MockManagerMockRecorder) PrimaryAlias(id interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrimaryAlias", reflect.TypeOf((*MockManager)(nil).PrimaryAlias), id)
}
// PrimaryAliasOrDefault mocks base method.
func (m *MockManager) PrimaryAliasOrDefault(id ids.ID) string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PrimaryAliasOrDefault", id)
ret0, _ := ret[0].(string)
return ret0
}
// PrimaryAliasOrDefault indicates an expected call of PrimaryAliasOrDefault.
func (mr *MockManagerMockRecorder) PrimaryAliasOrDefault(id interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrimaryAliasOrDefault", reflect.TypeOf((*MockManager)(nil).PrimaryAliasOrDefault), id)
}
// RegisterFactory mocks base method.
func (m *MockManager) RegisterFactory(vmID ids.ID, factory Factory) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RegisterFactory", vmID, factory)
ret0, _ := ret[0].(error)
return ret0
}
// RegisterFactory indicates an expected call of RegisterFactory.
func (mr *MockManagerMockRecorder) RegisterFactory(vmID, factory interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterFactory", reflect.TypeOf((*MockManager)(nil).RegisterFactory), vmID, factory)
}
// RemoveAliases mocks base method.
func (m *MockManager) RemoveAliases(id ids.ID) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "RemoveAliases", id)
}
// RemoveAliases indicates an expected call of RemoveAliases.
func (mr *MockManagerMockRecorder) RemoveAliases(id interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveAliases", reflect.TypeOf((*MockManager)(nil).RemoveAliases), id)
}
// 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))
}