forked from ava-labs/avalanchego
-
Notifications
You must be signed in to change notification settings - Fork 4
/
mock_block.go
169 lines (144 loc) · 4.81 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/MetalBlockchain/metalgo/snow/consensus/snowman (interfaces: Block)
//
// Generated by this command:
//
// mockgen -package=snowman -destination=snow/consensus/snowman/mock_block.go github.com/MetalBlockchain/metalgo/snow/consensus/snowman Block
//
// Package snowman is a generated GoMock package.
package snowman
import (
context "context"
reflect "reflect"
time "time"
ids "github.com/MetalBlockchain/metalgo/ids"
choices "github.com/MetalBlockchain/metalgo/snow/choices"
gomock "go.uber.org/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
}
// Accept mocks base method.
func (m *MockBlock) Accept(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Accept", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Accept indicates an expected call of Accept.
func (mr *MockBlockMockRecorder) Accept(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Accept", reflect.TypeOf((*MockBlock)(nil).Accept), arg0)
}
// 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))
}
// 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))
}
// Reject mocks base method.
func (m *MockBlock) Reject(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Reject", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Reject indicates an expected call of Reject.
func (mr *MockBlockMockRecorder) Reject(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reject", reflect.TypeOf((*MockBlock)(nil).Reject), arg0)
}
// Status mocks base method.
func (m *MockBlock) Status() choices.Status {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Status")
ret0, _ := ret[0].(choices.Status)
return ret0
}
// Status indicates an expected call of Status.
func (mr *MockBlockMockRecorder) Status() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Status", reflect.TypeOf((*MockBlock)(nil).Status))
}
// Timestamp mocks base method.
func (m *MockBlock) Timestamp() time.Time {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Timestamp")
ret0, _ := ret[0].(time.Time)
return ret0
}
// Timestamp indicates an expected call of Timestamp.
func (mr *MockBlockMockRecorder) Timestamp() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Timestamp", reflect.TypeOf((*MockBlock)(nil).Timestamp))
}
// Verify mocks base method.
func (m *MockBlock) Verify(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Verify", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Verify indicates an expected call of Verify.
func (mr *MockBlockMockRecorder) Verify(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Verify", reflect.TypeOf((*MockBlock)(nil).Verify), arg0)
}