Documentation ¶
Overview ¶
Package mock_committee is a generated GoMock package.
Index ¶
- type MockCommittee
- func (m *MockCommittee) EXPECT() *MockCommitteeMockRecorder
- func (m *MockCommittee) HeightByTime(arg0 time.Time) (uint64, error)
- func (m *MockCommittee) LatestHeight() uint64
- func (m *MockCommittee) NativeBucketsByEpoch(arg0 uint64) ([]*types.Bucket, error)
- func (m *MockCommittee) PutNativePollByEpoch(arg0 uint64, arg1 time.Time, arg2 []*types.Bucket) error
- func (m *MockCommittee) RawDataByHeight(arg0 uint64) ([]*types.Bucket, []*types.Registration, time.Time, error)
- func (m *MockCommittee) ResultByHeight(arg0 uint64) (*types.ElectionResult, error)
- func (m *MockCommittee) Start(arg0 context.Context) error
- func (m *MockCommittee) Status() committee.STATUS
- func (m *MockCommittee) Stop(arg0 context.Context) error
- type MockCommitteeMockRecorder
- func (mr *MockCommitteeMockRecorder) HeightByTime(arg0 interface{}) *gomock.Call
- func (mr *MockCommitteeMockRecorder) LatestHeight() *gomock.Call
- func (mr *MockCommitteeMockRecorder) NativeBucketsByEpoch(arg0 interface{}) *gomock.Call
- func (mr *MockCommitteeMockRecorder) PutNativePollByEpoch(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockCommitteeMockRecorder) RawDataByHeight(arg0 interface{}) *gomock.Call
- func (mr *MockCommitteeMockRecorder) ResultByHeight(arg0 interface{}) *gomock.Call
- func (mr *MockCommitteeMockRecorder) Start(arg0 interface{}) *gomock.Call
- func (mr *MockCommitteeMockRecorder) Status() *gomock.Call
- func (mr *MockCommitteeMockRecorder) Stop(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCommittee ¶
type MockCommittee struct {
// contains filtered or unexported fields
}
MockCommittee is a mock of Committee interface
func NewMockCommittee ¶
func NewMockCommittee(ctrl *gomock.Controller) *MockCommittee
NewMockCommittee creates a new mock instance
func (*MockCommittee) EXPECT ¶
func (m *MockCommittee) EXPECT() *MockCommitteeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockCommittee) HeightByTime ¶
func (m *MockCommittee) HeightByTime(arg0 time.Time) (uint64, error)
HeightByTime mocks base method
func (*MockCommittee) LatestHeight ¶
func (m *MockCommittee) LatestHeight() uint64
LatestHeight mocks base method
func (*MockCommittee) NativeBucketsByEpoch ¶ added in v0.2.3
func (m *MockCommittee) NativeBucketsByEpoch(arg0 uint64) ([]*types.Bucket, error)
NativeBucketsByEpoch mocks base method
func (*MockCommittee) PutNativePollByEpoch ¶ added in v0.2.3
func (m *MockCommittee) PutNativePollByEpoch(arg0 uint64, arg1 time.Time, arg2 []*types.Bucket) error
PutNativePollByEpoch mocks base method
func (*MockCommittee) RawDataByHeight ¶ added in v0.2.4
func (m *MockCommittee) RawDataByHeight(arg0 uint64) ([]*types.Bucket, []*types.Registration, time.Time, error)
RawDataByHeight mocks base method
func (*MockCommittee) ResultByHeight ¶
func (m *MockCommittee) ResultByHeight(arg0 uint64) (*types.ElectionResult, error)
ResultByHeight mocks base method
func (*MockCommittee) Start ¶
func (m *MockCommittee) Start(arg0 context.Context) error
Start mocks base method
func (*MockCommittee) Status ¶ added in v0.1.6
func (m *MockCommittee) Status() committee.STATUS
Status mocks base method
type MockCommitteeMockRecorder ¶
type MockCommitteeMockRecorder struct {
// contains filtered or unexported fields
}
MockCommitteeMockRecorder is the mock recorder for MockCommittee
func (*MockCommitteeMockRecorder) HeightByTime ¶
func (mr *MockCommitteeMockRecorder) HeightByTime(arg0 interface{}) *gomock.Call
HeightByTime indicates an expected call of HeightByTime
func (*MockCommitteeMockRecorder) LatestHeight ¶
func (mr *MockCommitteeMockRecorder) LatestHeight() *gomock.Call
LatestHeight indicates an expected call of LatestHeight
func (*MockCommitteeMockRecorder) NativeBucketsByEpoch ¶ added in v0.2.3
func (mr *MockCommitteeMockRecorder) NativeBucketsByEpoch(arg0 interface{}) *gomock.Call
NativeBucketsByEpoch indicates an expected call of NativeBucketsByEpoch
func (*MockCommitteeMockRecorder) PutNativePollByEpoch ¶ added in v0.2.3
func (mr *MockCommitteeMockRecorder) PutNativePollByEpoch(arg0, arg1, arg2 interface{}) *gomock.Call
PutNativePollByEpoch indicates an expected call of PutNativePollByEpoch
func (*MockCommitteeMockRecorder) RawDataByHeight ¶ added in v0.2.4
func (mr *MockCommitteeMockRecorder) RawDataByHeight(arg0 interface{}) *gomock.Call
RawDataByHeight indicates an expected call of RawDataByHeight
func (*MockCommitteeMockRecorder) ResultByHeight ¶
func (mr *MockCommitteeMockRecorder) ResultByHeight(arg0 interface{}) *gomock.Call
ResultByHeight indicates an expected call of ResultByHeight
func (*MockCommitteeMockRecorder) Start ¶
func (mr *MockCommitteeMockRecorder) Start(arg0 interface{}) *gomock.Call
Start indicates an expected call of Start
func (*MockCommitteeMockRecorder) Status ¶ added in v0.1.6
func (mr *MockCommitteeMockRecorder) Status() *gomock.Call
Status indicates an expected call of Status
func (*MockCommitteeMockRecorder) Stop ¶
func (mr *MockCommitteeMockRecorder) Stop(arg0 interface{}) *gomock.Call
Stop indicates an expected call of Stop