mock_committee

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock_committee is a generated GoMock package.

Index

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

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

func (*MockCommittee) Stop

func (m *MockCommittee) Stop(arg0 context.Context) error

Stop 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL