Documentation ¶
Overview ¶
Package mock_committee is a generated GoMock package.
Index ¶
- type MockCommittee
- func (m *MockCommittee) EXPECT() *MockCommitteeMockRecorder
- func (m *MockCommittee) FetchResultByHeight(height uint64) (*types.ElectionResult, error)
- func (m *MockCommittee) HeightByTime(timestamp time.Time) (uint64, error)
- func (m *MockCommittee) LatestHeight() uint64
- func (m *MockCommittee) ResultByHeight(height 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) FetchResultByHeight(height interface{}) *gomock.Call
- func (mr *MockCommitteeMockRecorder) HeightByTime(timestamp interface{}) *gomock.Call
- func (mr *MockCommitteeMockRecorder) LatestHeight() *gomock.Call
- func (mr *MockCommitteeMockRecorder) ResultByHeight(height 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) FetchResultByHeight ¶ added in v0.1.3
func (m *MockCommittee) FetchResultByHeight(height uint64) (*types.ElectionResult, error)
FetchResultByHeight mocks base method
func (*MockCommittee) HeightByTime ¶
func (m *MockCommittee) HeightByTime(timestamp time.Time) (uint64, error)
HeightByTime mocks base method
func (*MockCommittee) LatestHeight ¶
func (m *MockCommittee) LatestHeight() uint64
LatestHeight mocks base method
func (*MockCommittee) ResultByHeight ¶
func (m *MockCommittee) ResultByHeight(height 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) FetchResultByHeight ¶ added in v0.1.3
func (mr *MockCommitteeMockRecorder) FetchResultByHeight(height interface{}) *gomock.Call
FetchResultByHeight indicates an expected call of FetchResultByHeight
func (*MockCommitteeMockRecorder) HeightByTime ¶
func (mr *MockCommitteeMockRecorder) HeightByTime(timestamp 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) ResultByHeight ¶
func (mr *MockCommitteeMockRecorder) ResultByHeight(height 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