-
Notifications
You must be signed in to change notification settings - Fork 671
/
mock_manager.go
170 lines (144 loc) · 5.68 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
// 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/avm/block/executor (interfaces: Manager)
// Package executor is a generated GoMock package.
package executor
import (
reflect "reflect"
ids "github.com/ava-labs/avalanchego/ids"
snowman "github.com/ava-labs/avalanchego/snow/consensus/snowman"
set "github.com/ava-labs/avalanchego/utils/set"
block "github.com/ava-labs/avalanchego/vms/avm/block"
states "github.com/ava-labs/avalanchego/vms/avm/states"
txs "github.com/ava-labs/avalanchego/vms/avm/txs"
gomock "go.uber.org/mock/gomock"
)
// 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
}
// GetBlock mocks base method.
func (m *MockManager) GetBlock(arg0 ids.ID) (snowman.Block, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBlock", arg0)
ret0, _ := ret[0].(snowman.Block)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetBlock indicates an expected call of GetBlock.
func (mr *MockManagerMockRecorder) GetBlock(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlock", reflect.TypeOf((*MockManager)(nil).GetBlock), arg0)
}
// GetState mocks base method.
func (m *MockManager) GetState(arg0 ids.ID) (states.Chain, bool) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetState", arg0)
ret0, _ := ret[0].(states.Chain)
ret1, _ := ret[1].(bool)
return ret0, ret1
}
// GetState indicates an expected call of GetState.
func (mr *MockManagerMockRecorder) GetState(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetState", reflect.TypeOf((*MockManager)(nil).GetState), arg0)
}
// GetStatelessBlock mocks base method.
func (m *MockManager) GetStatelessBlock(arg0 ids.ID) (block.Block, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetStatelessBlock", arg0)
ret0, _ := ret[0].(block.Block)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetStatelessBlock indicates an expected call of GetStatelessBlock.
func (mr *MockManagerMockRecorder) GetStatelessBlock(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStatelessBlock", reflect.TypeOf((*MockManager)(nil).GetStatelessBlock), arg0)
}
// LastAccepted mocks base method.
func (m *MockManager) LastAccepted() ids.ID {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "LastAccepted")
ret0, _ := ret[0].(ids.ID)
return ret0
}
// LastAccepted indicates an expected call of LastAccepted.
func (mr *MockManagerMockRecorder) LastAccepted() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LastAccepted", reflect.TypeOf((*MockManager)(nil).LastAccepted))
}
// NewBlock mocks base method.
func (m *MockManager) NewBlock(arg0 block.Block) snowman.Block {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewBlock", arg0)
ret0, _ := ret[0].(snowman.Block)
return ret0
}
// NewBlock indicates an expected call of NewBlock.
func (mr *MockManagerMockRecorder) NewBlock(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewBlock", reflect.TypeOf((*MockManager)(nil).NewBlock), arg0)
}
// Preferred mocks base method.
func (m *MockManager) Preferred() ids.ID {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Preferred")
ret0, _ := ret[0].(ids.ID)
return ret0
}
// Preferred indicates an expected call of Preferred.
func (mr *MockManagerMockRecorder) Preferred() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Preferred", reflect.TypeOf((*MockManager)(nil).Preferred))
}
// SetPreference mocks base method.
func (m *MockManager) SetPreference(arg0 ids.ID) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetPreference", arg0)
}
// SetPreference indicates an expected call of SetPreference.
func (mr *MockManagerMockRecorder) SetPreference(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPreference", reflect.TypeOf((*MockManager)(nil).SetPreference), arg0)
}
// VerifyTx mocks base method.
func (m *MockManager) VerifyTx(arg0 *txs.Tx) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "VerifyTx", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// VerifyTx indicates an expected call of VerifyTx.
func (mr *MockManagerMockRecorder) VerifyTx(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyTx", reflect.TypeOf((*MockManager)(nil).VerifyTx), arg0)
}
// VerifyUniqueInputs mocks base method.
func (m *MockManager) VerifyUniqueInputs(arg0 ids.ID, arg1 set.Set[ids.ID]) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "VerifyUniqueInputs", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// VerifyUniqueInputs indicates an expected call of VerifyUniqueInputs.
func (mr *MockManagerMockRecorder) VerifyUniqueInputs(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyUniqueInputs", reflect.TypeOf((*MockManager)(nil).VerifyUniqueInputs), arg0, arg1)
}