-
Notifications
You must be signed in to change notification settings - Fork 662
/
mock_block.go
147 lines (124 loc) · 4.17 KB
/
mock_block.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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/ava-labs/avalanchego/vms/platformvm/blocks (interfaces: Block)
// Package blocks is a generated GoMock package.
package blocks
import (
reflect "reflect"
ids "github.com/ava-labs/avalanchego/ids"
snow "github.com/ava-labs/avalanchego/snow"
txs "github.com/ava-labs/avalanchego/vms/platformvm/txs"
gomock "github.com/golang/mock/gomock"
)
// MockBlock is a mock of Block interface.
type MockBlock struct {
ctrl *gomock.Controller
recorder *MockBlockMockRecorder
}
// MockBlockMockRecorder is the mock recorder for MockBlock.
type MockBlockMockRecorder struct {
mock *MockBlock
}
// NewMockBlock creates a new mock instance.
func NewMockBlock(ctrl *gomock.Controller) *MockBlock {
mock := &MockBlock{ctrl: ctrl}
mock.recorder = &MockBlockMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockBlock) EXPECT() *MockBlockMockRecorder {
return m.recorder
}
// Bytes mocks base method.
func (m *MockBlock) Bytes() []byte {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Bytes")
ret0, _ := ret[0].([]byte)
return ret0
}
// Bytes indicates an expected call of Bytes.
func (mr *MockBlockMockRecorder) Bytes() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bytes", reflect.TypeOf((*MockBlock)(nil).Bytes))
}
// Height mocks base method.
func (m *MockBlock) Height() uint64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Height")
ret0, _ := ret[0].(uint64)
return ret0
}
// Height indicates an expected call of Height.
func (mr *MockBlockMockRecorder) Height() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Height", reflect.TypeOf((*MockBlock)(nil).Height))
}
// ID mocks base method.
func (m *MockBlock) ID() ids.ID {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ID")
ret0, _ := ret[0].(ids.ID)
return ret0
}
// ID indicates an expected call of ID.
func (mr *MockBlockMockRecorder) ID() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ID", reflect.TypeOf((*MockBlock)(nil).ID))
}
// InitCtx mocks base method.
func (m *MockBlock) InitCtx(arg0 *snow.Context) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "InitCtx", arg0)
}
// InitCtx indicates an expected call of InitCtx.
func (mr *MockBlockMockRecorder) InitCtx(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitCtx", reflect.TypeOf((*MockBlock)(nil).InitCtx), arg0)
}
// Parent mocks base method.
func (m *MockBlock) Parent() ids.ID {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Parent")
ret0, _ := ret[0].(ids.ID)
return ret0
}
// Parent indicates an expected call of Parent.
func (mr *MockBlockMockRecorder) Parent() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Parent", reflect.TypeOf((*MockBlock)(nil).Parent))
}
// Txs mocks base method.
func (m *MockBlock) Txs() []*txs.Tx {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Txs")
ret0, _ := ret[0].([]*txs.Tx)
return ret0
}
// Txs indicates an expected call of Txs.
func (mr *MockBlockMockRecorder) Txs() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Txs", reflect.TypeOf((*MockBlock)(nil).Txs))
}
// Visit mocks base method.
func (m *MockBlock) Visit(arg0 Visitor) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Visit", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Visit indicates an expected call of Visit.
func (mr *MockBlockMockRecorder) Visit(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Visit", reflect.TypeOf((*MockBlock)(nil).Visit), arg0)
}
// initialize mocks base method.
func (m *MockBlock) initialize(arg0 []byte) 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 *MockBlockMockRecorder) initialize(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "initialize", reflect.TypeOf((*MockBlock)(nil).initialize), arg0)
}