mock

package
v0.0.0-...-5104f13 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockICommittee

type MockICommittee struct {
	// contains filtered or unexported fields
}

MockICommittee is a mock of ICommittee interface

func NewMockICommittee

func NewMockICommittee(ctrl *gomock.Controller) *MockICommittee

NewMockICommittee creates a new mock instance

func (*MockICommittee) BroadCast

func (m *MockICommittee) BroadCast(msg message.ConsensusMessage) error

BroadCast mocks base method

func (*MockICommittee) Commit

func (m *MockICommittee) Commit(commitRecords *message.Commit) error

Commit mocks base method

func (*MockICommittee) DecidesProposal

func (m *MockICommittee) DecidesProposal() message.ProposedData

DecidesProposal mocks base method

func (*MockICommittee) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockICommittee) GetAppState

func (m *MockICommittee) GetAppState() *message.AppState

GetAppState mocks base method

func (*MockICommittee) GetCommitHistory

func (m *MockICommittee) GetCommitHistory(height int64) *message.Commit

GetCommitHistory mocks base method

func (*MockICommittee) GetCurrentProposer

func (m *MockICommittee) GetCurrentProposer(round int) message.PubKey

GetCurrentProposer mocks base method

func (*MockICommittee) GetValidator

func (m *MockICommittee) GetValidator(key message.PubKey) custom.IPubValidator

GetValidator mocks base method

func (*MockICommittee) GetValidatorList

func (m *MockICommittee) GetValidatorList() []message.PubKey

GetValidatorList mocks base method

func (*MockICommittee) GetValidatorNum

func (m *MockICommittee) GetValidatorNum() int

GetValidatorNum mocks base method

func (*MockICommittee) IsValidator

func (m *MockICommittee) IsValidator(key message.PubKey) bool

IsValidator mocks base method

func (*MockICommittee) Send

Send mocks base method

func (*MockICommittee) TotalVotingPower

func (m *MockICommittee) TotalVotingPower() int64

TotalVotingPower mocks base method

func (*MockICommittee) ValidateProposal

func (m *MockICommittee) ValidateProposal(data message.ProposedData) bool

ValidateProposal mocks base method

type MockICommitteeMockRecorder

type MockICommitteeMockRecorder struct {
	// contains filtered or unexported fields
}

MockICommitteeMockRecorder is the mock recorder for MockICommittee

func (*MockICommitteeMockRecorder) BroadCast

func (mr *MockICommitteeMockRecorder) BroadCast(msg interface{}) *gomock.Call

BroadCast indicates an expected call of BroadCast

func (*MockICommitteeMockRecorder) Commit

func (mr *MockICommitteeMockRecorder) Commit(commitRecords interface{}) *gomock.Call

Commit indicates an expected call of Commit

func (*MockICommitteeMockRecorder) DecidesProposal

func (mr *MockICommitteeMockRecorder) DecidesProposal() *gomock.Call

DecidesProposal indicates an expected call of DecidesProposal

func (*MockICommitteeMockRecorder) GetAppState

func (mr *MockICommitteeMockRecorder) GetAppState() *gomock.Call

GetAppState indicates an expected call of GetAppState

func (*MockICommitteeMockRecorder) GetCommitHistory

func (mr *MockICommitteeMockRecorder) GetCommitHistory(height interface{}) *gomock.Call

GetCommitHistory indicates an expected call of GetCommitHistory

func (*MockICommitteeMockRecorder) GetCurrentProposer

func (mr *MockICommitteeMockRecorder) GetCurrentProposer(round interface{}) *gomock.Call

GetCurrentProposer indicates an expected call of GetCurrentProposer

func (*MockICommitteeMockRecorder) GetValidator

func (mr *MockICommitteeMockRecorder) GetValidator(key interface{}) *gomock.Call

GetValidator indicates an expected call of GetValidator

func (*MockICommitteeMockRecorder) GetValidatorList

func (mr *MockICommitteeMockRecorder) GetValidatorList() *gomock.Call

GetValidatorList indicates an expected call of GetValidatorList

func (*MockICommitteeMockRecorder) GetValidatorNum

func (mr *MockICommitteeMockRecorder) GetValidatorNum() *gomock.Call

GetValidatorNum indicates an expected call of GetValidatorNum

func (*MockICommitteeMockRecorder) IsValidator

func (mr *MockICommitteeMockRecorder) IsValidator(key interface{}) *gomock.Call

IsValidator indicates an expected call of IsValidator

func (*MockICommitteeMockRecorder) Send

func (mr *MockICommitteeMockRecorder) Send(msg, p interface{}) *gomock.Call

Send indicates an expected call of Send

func (*MockICommitteeMockRecorder) TotalVotingPower

func (mr *MockICommitteeMockRecorder) TotalVotingPower() *gomock.Call

TotalVotingPower indicates an expected call of TotalVotingPower

func (*MockICommitteeMockRecorder) ValidateProposal

func (mr *MockICommitteeMockRecorder) ValidateProposal(data interface{}) *gomock.Call

ValidateProposal indicates an expected call of ValidateProposal

type MockIP2P

type MockIP2P struct {
	// contains filtered or unexported fields
}

MockIP2P is a mock of IP2P interface

func NewMockIP2P

func NewMockIP2P(ctrl *gomock.Controller) *MockIP2P

NewMockIP2P creates a new mock instance

func (*MockIP2P) BroadCast

func (m *MockIP2P) BroadCast(msg message.ConsensusMessage) error

BroadCast mocks base method

func (*MockIP2P) EXPECT

func (m *MockIP2P) EXPECT() *MockIP2PMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockIP2P) Send

Send mocks base method

type MockIP2PMockRecorder

type MockIP2PMockRecorder struct {
	// contains filtered or unexported fields
}

MockIP2PMockRecorder is the mock recorder for MockIP2P

func (*MockIP2PMockRecorder) BroadCast

func (mr *MockIP2PMockRecorder) BroadCast(msg interface{}) *gomock.Call

BroadCast indicates an expected call of BroadCast

func (*MockIP2PMockRecorder) Send

func (mr *MockIP2PMockRecorder) Send(msg, p interface{}) *gomock.Call

Send indicates an expected call of Send

type MockIPeer

type MockIPeer struct {
	// contains filtered or unexported fields
}

MockIPeer is a mock of IPeer interface

func NewMockIPeer

func NewMockIPeer(ctrl *gomock.Controller) *MockIPeer

NewMockIPeer creates a new mock instance

func (*MockIPeer) EXPECT

func (m *MockIPeer) EXPECT() *MockIPeerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockIPeer) IPv4

func (m *MockIPeer) IPv4() string

IPv4 mocks base method

func (*MockIPeer) Port

func (m *MockIPeer) Port() uint16

Port mocks base method

type MockIPeerMockRecorder

type MockIPeerMockRecorder struct {
	// contains filtered or unexported fields
}

MockIPeerMockRecorder is the mock recorder for MockIPeer

func (*MockIPeerMockRecorder) IPv4

func (mr *MockIPeerMockRecorder) IPv4() *gomock.Call

IPv4 indicates an expected call of IPv4

func (*MockIPeerMockRecorder) Port

func (mr *MockIPeerMockRecorder) Port() *gomock.Call

Port indicates an expected call of Port

type MockIPrivValidator

type MockIPrivValidator struct {
	// contains filtered or unexported fields
}

MockIPrivValidator is a mock of IPrivValidator interface

func NewMockIPrivValidator

func NewMockIPrivValidator(ctrl *gomock.Controller) *MockIPrivValidator

NewMockIPrivValidator creates a new mock instance

func (*MockIPrivValidator) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockIPrivValidator) GetPubKey

func (m *MockIPrivValidator) GetPubKey() message.PubKey

GetPubKey mocks base method

func (*MockIPrivValidator) Sign

func (m *MockIPrivValidator) Sign(digest []byte) []byte

Sign mocks base method

type MockIPrivValidatorMockRecorder

type MockIPrivValidatorMockRecorder struct {
	// contains filtered or unexported fields
}

MockIPrivValidatorMockRecorder is the mock recorder for MockIPrivValidator

func (*MockIPrivValidatorMockRecorder) GetPubKey

func (mr *MockIPrivValidatorMockRecorder) GetPubKey() *gomock.Call

GetPubKey indicates an expected call of GetPubKey

func (*MockIPrivValidatorMockRecorder) Sign

func (mr *MockIPrivValidatorMockRecorder) Sign(digest interface{}) *gomock.Call

Sign indicates an expected call of Sign

type MockIPubValidator

type MockIPubValidator struct {
	// contains filtered or unexported fields
}

MockIPubValidator is a mock of IPubValidator interface

func NewMockIPubValidator

func NewMockIPubValidator(ctrl *gomock.Controller) *MockIPubValidator

NewMockIPubValidator creates a new mock instance

func (*MockIPubValidator) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockIPubValidator) GetPubKey

func (m *MockIPubValidator) GetPubKey() message.PubKey

GetPubKey mocks base method

func (*MockIPubValidator) GetVotingPower

func (m *MockIPubValidator) GetVotingPower() int64

GetVotingPower mocks base method

func (*MockIPubValidator) SetVotingPower

func (m *MockIPubValidator) SetVotingPower(arg0 int64)

SetVotingPower mocks base method

func (*MockIPubValidator) VerifySig

func (m *MockIPubValidator) VerifySig(digest, signature []byte) bool

VerifySig mocks base method

type MockIPubValidatorMockRecorder

type MockIPubValidatorMockRecorder struct {
	// contains filtered or unexported fields
}

MockIPubValidatorMockRecorder is the mock recorder for MockIPubValidator

func (*MockIPubValidatorMockRecorder) GetPubKey

func (mr *MockIPubValidatorMockRecorder) GetPubKey() *gomock.Call

GetPubKey indicates an expected call of GetPubKey

func (*MockIPubValidatorMockRecorder) GetVotingPower

func (mr *MockIPubValidatorMockRecorder) GetVotingPower() *gomock.Call

GetVotingPower indicates an expected call of GetVotingPower

func (*MockIPubValidatorMockRecorder) SetVotingPower

func (mr *MockIPubValidatorMockRecorder) SetVotingPower(arg0 interface{}) *gomock.Call

SetVotingPower indicates an expected call of SetVotingPower

func (*MockIPubValidatorMockRecorder) VerifySig

func (mr *MockIPubValidatorMockRecorder) VerifySig(digest, signature interface{}) *gomock.Call

VerifySig indicates an expected call of VerifySig

Jump to

Keyboard shortcuts

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