-
Notifications
You must be signed in to change notification settings - Fork 662
/
mock_staker.go
134 lines (113 loc) · 3.89 KB
/
mock_staker.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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/ava-labs/avalanchego/vms/platformvm/txs (interfaces: Staker)
// Package txs is a generated GoMock package.
package txs
import (
reflect "reflect"
time "time"
ids "github.com/ava-labs/avalanchego/ids"
gomock "github.com/golang/mock/gomock"
)
// MockStaker is a mock of Staker interface.
type MockStaker struct {
ctrl *gomock.Controller
recorder *MockStakerMockRecorder
}
// MockStakerMockRecorder is the mock recorder for MockStaker.
type MockStakerMockRecorder struct {
mock *MockStaker
}
// NewMockStaker creates a new mock instance.
func NewMockStaker(ctrl *gomock.Controller) *MockStaker {
mock := &MockStaker{ctrl: ctrl}
mock.recorder = &MockStakerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockStaker) EXPECT() *MockStakerMockRecorder {
return m.recorder
}
// CurrentPriority mocks base method.
func (m *MockStaker) CurrentPriority() Priority {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CurrentPriority")
ret0, _ := ret[0].(Priority)
return ret0
}
// CurrentPriority indicates an expected call of CurrentPriority.
func (mr *MockStakerMockRecorder) CurrentPriority() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CurrentPriority", reflect.TypeOf((*MockStaker)(nil).CurrentPriority))
}
// EndTime mocks base method.
func (m *MockStaker) EndTime() time.Time {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EndTime")
ret0, _ := ret[0].(time.Time)
return ret0
}
// EndTime indicates an expected call of EndTime.
func (mr *MockStakerMockRecorder) EndTime() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EndTime", reflect.TypeOf((*MockStaker)(nil).EndTime))
}
// NodeID mocks base method.
func (m *MockStaker) NodeID() ids.NodeID {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NodeID")
ret0, _ := ret[0].(ids.NodeID)
return ret0
}
// NodeID indicates an expected call of NodeID.
func (mr *MockStakerMockRecorder) NodeID() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeID", reflect.TypeOf((*MockStaker)(nil).NodeID))
}
// PendingPriority mocks base method.
func (m *MockStaker) PendingPriority() Priority {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PendingPriority")
ret0, _ := ret[0].(Priority)
return ret0
}
// PendingPriority indicates an expected call of PendingPriority.
func (mr *MockStakerMockRecorder) PendingPriority() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PendingPriority", reflect.TypeOf((*MockStaker)(nil).PendingPriority))
}
// StartTime mocks base method.
func (m *MockStaker) StartTime() time.Time {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "StartTime")
ret0, _ := ret[0].(time.Time)
return ret0
}
// StartTime indicates an expected call of StartTime.
func (mr *MockStakerMockRecorder) StartTime() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartTime", reflect.TypeOf((*MockStaker)(nil).StartTime))
}
// SubnetID mocks base method.
func (m *MockStaker) SubnetID() ids.ID {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SubnetID")
ret0, _ := ret[0].(ids.ID)
return ret0
}
// SubnetID indicates an expected call of SubnetID.
func (mr *MockStakerMockRecorder) SubnetID() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubnetID", reflect.TypeOf((*MockStaker)(nil).SubnetID))
}
// Weight mocks base method.
func (m *MockStaker) Weight() uint64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Weight")
ret0, _ := ret[0].(uint64)
return ret0
}
// Weight indicates an expected call of Weight.
func (mr *MockStakerMockRecorder) Weight() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Weight", reflect.TypeOf((*MockStaker)(nil).Weight))
}