-
Notifications
You must be signed in to change notification settings - Fork 660
/
mock_fx.go
175 lines (146 loc) · 5.4 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
// Copyright (C) 2019-2023, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/ava-labs/avalanchego/vms/platformvm/fx (interfaces: Fx,Owner)
// Package fx is a generated GoMock package.
package fx
import (
reflect "reflect"
snow "github.com/ava-labs/avalanchego/snow"
verify "github.com/ava-labs/avalanchego/vms/components/verify"
gomock "go.uber.org/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(arg0 uint64, arg1 interface{}) (interface{}, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreateOutput", arg0, arg1)
ret0, _ := ret[0].(interface{})
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CreateOutput indicates an expected call of CreateOutput.
func (mr *MockFxMockRecorder) CreateOutput(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOutput", reflect.TypeOf((*MockFx)(nil).CreateOutput), arg0, arg1)
}
// Initialize mocks base method.
func (m *MockFx) Initialize(arg0 interface{}) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Initialize", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Initialize indicates an expected call of Initialize.
func (mr *MockFxMockRecorder) Initialize(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Initialize", reflect.TypeOf((*MockFx)(nil).Initialize), arg0)
}
// VerifyPermission mocks base method.
func (m *MockFx) VerifyPermission(arg0, arg1, arg2, arg3 interface{}) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "VerifyPermission", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(error)
return ret0
}
// VerifyPermission indicates an expected call of VerifyPermission.
func (mr *MockFxMockRecorder) VerifyPermission(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyPermission", reflect.TypeOf((*MockFx)(nil).VerifyPermission), arg0, arg1, arg2, arg3)
}
// VerifyTransfer mocks base method.
func (m *MockFx) VerifyTransfer(arg0, arg1, arg2, arg3 interface{}) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "VerifyTransfer", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(error)
return ret0
}
// VerifyTransfer indicates an expected call of VerifyTransfer.
func (mr *MockFxMockRecorder) VerifyTransfer(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyTransfer", reflect.TypeOf((*MockFx)(nil).VerifyTransfer), arg0, arg1, arg2, arg3)
}
// MockOwner is a mock of Owner interface.
type MockOwner struct {
verify.IsNotState
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(arg0 *snow.Context) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "InitCtx", arg0)
}
// InitCtx indicates an expected call of InitCtx.
func (mr *MockOwnerMockRecorder) InitCtx(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitCtx", reflect.TypeOf((*MockOwner)(nil).InitCtx), arg0)
}
// 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))
}