Documentation ¶
Overview ¶
Package mock_istanbul is a generated GoMock package.
Index ¶
- type MockBackend
- func (m *MockBackend) Address() common.Address
- func (m *MockBackend) Broadcast(arg0 common.Hash, arg1 istanbul.ValidatorSet, arg2 []byte) error
- func (m *MockBackend) CheckSignature(arg0 []byte, arg1 common.Address, arg2 []byte) error
- func (m *MockBackend) Commit(arg0 istanbul.Proposal, arg1 [][]byte) error
- func (m *MockBackend) EXPECT() *MockBackendMockRecorder
- func (m *MockBackend) EventMux() *event.TypeMux
- func (m *MockBackend) GetProposer(arg0 uint64) common.Address
- func (m *MockBackend) GetRewardBase() common.Address
- func (m *MockBackend) GetSubGroupSize() uint64
- func (m *MockBackend) Gossip(arg0 istanbul.ValidatorSet, arg1 []byte) error
- func (m *MockBackend) GossipSubPeer(arg0 common.Hash, arg1 istanbul.ValidatorSet, arg2 []byte) map[common.Address]bool
- func (m *MockBackend) HasBadProposal(arg0 common.Hash) bool
- func (m *MockBackend) HasPropsal(arg0 common.Hash, arg1 *big.Int) bool
- func (m *MockBackend) LastProposal() (istanbul.Proposal, common.Address)
- func (m *MockBackend) NodeType() common.ConnType
- func (m *MockBackend) ParentValidators(arg0 istanbul.Proposal) istanbul.ValidatorSet
- func (m *MockBackend) SetCurrentView(arg0 *istanbul.View)
- func (m *MockBackend) Sign(arg0 []byte) ([]byte, error)
- func (m *MockBackend) Validators(arg0 istanbul.Proposal) istanbul.ValidatorSet
- func (m *MockBackend) Verify(arg0 istanbul.Proposal) (time.Duration, error)
- type MockBackendMockRecorder
- func (mr *MockBackendMockRecorder) Address() *gomock.Call
- func (mr *MockBackendMockRecorder) Broadcast(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) CheckSignature(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) Commit(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) EventMux() *gomock.Call
- func (mr *MockBackendMockRecorder) GetProposer(arg0 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) GetRewardBase() *gomock.Call
- func (mr *MockBackendMockRecorder) GetSubGroupSize() *gomock.Call
- func (mr *MockBackendMockRecorder) Gossip(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) GossipSubPeer(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) HasBadProposal(arg0 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) HasPropsal(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) LastProposal() *gomock.Call
- func (mr *MockBackendMockRecorder) NodeType() *gomock.Call
- func (mr *MockBackendMockRecorder) ParentValidators(arg0 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) SetCurrentView(arg0 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) Sign(arg0 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) Validators(arg0 interface{}) *gomock.Call
- func (mr *MockBackendMockRecorder) Verify(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBackend ¶
type MockBackend struct {
// contains filtered or unexported fields
}
MockBackend is a mock of Backend interface
func NewMockBackend ¶
func NewMockBackend(ctrl *gomock.Controller) *MockBackend
NewMockBackend creates a new mock instance
func (*MockBackend) Address ¶
func (m *MockBackend) Address() common.Address
Address mocks base method
func (*MockBackend) Broadcast ¶
func (m *MockBackend) Broadcast(arg0 common.Hash, arg1 istanbul.ValidatorSet, arg2 []byte) error
Broadcast mocks base method
func (*MockBackend) CheckSignature ¶
CheckSignature mocks base method
func (*MockBackend) Commit ¶
func (m *MockBackend) Commit(arg0 istanbul.Proposal, arg1 [][]byte) error
Commit mocks base method
func (*MockBackend) EXPECT ¶
func (m *MockBackend) EXPECT() *MockBackendMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockBackend) EventMux ¶
func (m *MockBackend) EventMux() *event.TypeMux
EventMux mocks base method
func (*MockBackend) GetProposer ¶
func (m *MockBackend) GetProposer(arg0 uint64) common.Address
GetProposer mocks base method
func (*MockBackend) GetRewardBase ¶
func (m *MockBackend) GetRewardBase() common.Address
GetRewardBase mocks base method
func (*MockBackend) GetSubGroupSize ¶
func (m *MockBackend) GetSubGroupSize() uint64
GetSubGroupSize mocks base method
func (*MockBackend) Gossip ¶
func (m *MockBackend) Gossip(arg0 istanbul.ValidatorSet, arg1 []byte) error
Gossip mocks base method
func (*MockBackend) GossipSubPeer ¶
func (m *MockBackend) GossipSubPeer(arg0 common.Hash, arg1 istanbul.ValidatorSet, arg2 []byte) map[common.Address]bool
GossipSubPeer mocks base method
func (*MockBackend) HasBadProposal ¶
func (m *MockBackend) HasBadProposal(arg0 common.Hash) bool
HasBadProposal mocks base method
func (*MockBackend) HasPropsal ¶
HasPropsal mocks base method
func (*MockBackend) LastProposal ¶
func (m *MockBackend) LastProposal() (istanbul.Proposal, common.Address)
LastProposal mocks base method
func (*MockBackend) NodeType ¶
func (m *MockBackend) NodeType() common.ConnType
NodeType mocks base method
func (*MockBackend) ParentValidators ¶
func (m *MockBackend) ParentValidators(arg0 istanbul.Proposal) istanbul.ValidatorSet
ParentValidators mocks base method
func (*MockBackend) SetCurrentView ¶
func (m *MockBackend) SetCurrentView(arg0 *istanbul.View)
SetCurrentView mocks base method
func (*MockBackend) Sign ¶
func (m *MockBackend) Sign(arg0 []byte) ([]byte, error)
Sign mocks base method
func (*MockBackend) Validators ¶
func (m *MockBackend) Validators(arg0 istanbul.Proposal) istanbul.ValidatorSet
Validators mocks base method
type MockBackendMockRecorder ¶
type MockBackendMockRecorder struct {
// contains filtered or unexported fields
}
MockBackendMockRecorder is the mock recorder for MockBackend
func (*MockBackendMockRecorder) Address ¶
func (mr *MockBackendMockRecorder) Address() *gomock.Call
Address indicates an expected call of Address
func (*MockBackendMockRecorder) Broadcast ¶
func (mr *MockBackendMockRecorder) Broadcast(arg0, arg1, arg2 interface{}) *gomock.Call
Broadcast indicates an expected call of Broadcast
func (*MockBackendMockRecorder) CheckSignature ¶
func (mr *MockBackendMockRecorder) CheckSignature(arg0, arg1, arg2 interface{}) *gomock.Call
CheckSignature indicates an expected call of CheckSignature
func (*MockBackendMockRecorder) Commit ¶
func (mr *MockBackendMockRecorder) Commit(arg0, arg1 interface{}) *gomock.Call
Commit indicates an expected call of Commit
func (*MockBackendMockRecorder) EventMux ¶
func (mr *MockBackendMockRecorder) EventMux() *gomock.Call
EventMux indicates an expected call of EventMux
func (*MockBackendMockRecorder) GetProposer ¶
func (mr *MockBackendMockRecorder) GetProposer(arg0 interface{}) *gomock.Call
GetProposer indicates an expected call of GetProposer
func (*MockBackendMockRecorder) GetRewardBase ¶
func (mr *MockBackendMockRecorder) GetRewardBase() *gomock.Call
GetRewardBase indicates an expected call of GetRewardBase
func (*MockBackendMockRecorder) GetSubGroupSize ¶
func (mr *MockBackendMockRecorder) GetSubGroupSize() *gomock.Call
GetSubGroupSize indicates an expected call of GetSubGroupSize
func (*MockBackendMockRecorder) Gossip ¶
func (mr *MockBackendMockRecorder) Gossip(arg0, arg1 interface{}) *gomock.Call
Gossip indicates an expected call of Gossip
func (*MockBackendMockRecorder) GossipSubPeer ¶
func (mr *MockBackendMockRecorder) GossipSubPeer(arg0, arg1, arg2 interface{}) *gomock.Call
GossipSubPeer indicates an expected call of GossipSubPeer
func (*MockBackendMockRecorder) HasBadProposal ¶
func (mr *MockBackendMockRecorder) HasBadProposal(arg0 interface{}) *gomock.Call
HasBadProposal indicates an expected call of HasBadProposal
func (*MockBackendMockRecorder) HasPropsal ¶
func (mr *MockBackendMockRecorder) HasPropsal(arg0, arg1 interface{}) *gomock.Call
HasPropsal indicates an expected call of HasPropsal
func (*MockBackendMockRecorder) LastProposal ¶
func (mr *MockBackendMockRecorder) LastProposal() *gomock.Call
LastProposal indicates an expected call of LastProposal
func (*MockBackendMockRecorder) NodeType ¶
func (mr *MockBackendMockRecorder) NodeType() *gomock.Call
NodeType indicates an expected call of NodeType
func (*MockBackendMockRecorder) ParentValidators ¶
func (mr *MockBackendMockRecorder) ParentValidators(arg0 interface{}) *gomock.Call
ParentValidators indicates an expected call of ParentValidators
func (*MockBackendMockRecorder) SetCurrentView ¶
func (mr *MockBackendMockRecorder) SetCurrentView(arg0 interface{}) *gomock.Call
SetCurrentView indicates an expected call of SetCurrentView
func (*MockBackendMockRecorder) Sign ¶
func (mr *MockBackendMockRecorder) Sign(arg0 interface{}) *gomock.Call
Sign indicates an expected call of Sign
func (*MockBackendMockRecorder) Validators ¶
func (mr *MockBackendMockRecorder) Validators(arg0 interface{}) *gomock.Call
Validators indicates an expected call of Validators
func (*MockBackendMockRecorder) Verify ¶
func (mr *MockBackendMockRecorder) Verify(arg0 interface{}) *gomock.Call
Verify indicates an expected call of Verify