iotex-core: github.com/iotexproject/iotex-core/test/mock/mock_dispatcher Index | Files

package mock_dispatcher

import "github.com/iotexproject/iotex-core/test/mock/mock_dispatcher"

Package mock_dispatcher is a generated GoMock package.

Index

Package Files

mock_dispatcher.go

type MockDispatcher Uses

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

MockDispatcher is a mock of Dispatcher interface

func NewMockDispatcher Uses

func NewMockDispatcher(ctrl *gomock.Controller) *MockDispatcher

NewMockDispatcher creates a new mock instance

func (*MockDispatcher) AddSubscriber Uses

func (m *MockDispatcher) AddSubscriber(arg0 uint32, arg1 dispatcher.Subscriber)

AddSubscriber mocks base method

func (*MockDispatcher) EXPECT Uses

func (m *MockDispatcher) EXPECT() *MockDispatcherMockRecorder

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

func (*MockDispatcher) HandleBroadcast Uses

func (m *MockDispatcher) HandleBroadcast(arg0 context.Context, arg1 uint32, arg2 proto.Message)

HandleBroadcast mocks base method

func (*MockDispatcher) HandleTell Uses

func (m *MockDispatcher) HandleTell(arg0 context.Context, arg1 uint32, arg2 go_libp2p_peerstore.PeerInfo, arg3 proto.Message)

HandleTell mocks base method

func (*MockDispatcher) Start Uses

func (m *MockDispatcher) Start(arg0 context.Context) error

Start mocks base method

func (*MockDispatcher) Stop Uses

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

Stop mocks base method

type MockDispatcherMockRecorder Uses

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

MockDispatcherMockRecorder is the mock recorder for MockDispatcher

func (*MockDispatcherMockRecorder) AddSubscriber Uses

func (mr *MockDispatcherMockRecorder) AddSubscriber(arg0, arg1 interface{}) *gomock.Call

AddSubscriber indicates an expected call of AddSubscriber

func (*MockDispatcherMockRecorder) HandleBroadcast Uses

func (mr *MockDispatcherMockRecorder) HandleBroadcast(arg0, arg1, arg2 interface{}) *gomock.Call

HandleBroadcast indicates an expected call of HandleBroadcast

func (*MockDispatcherMockRecorder) HandleTell Uses

func (mr *MockDispatcherMockRecorder) HandleTell(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

HandleTell indicates an expected call of HandleTell

func (*MockDispatcherMockRecorder) Start Uses

func (mr *MockDispatcherMockRecorder) Start(arg0 interface{}) *gomock.Call

Start indicates an expected call of Start

func (*MockDispatcherMockRecorder) Stop Uses

func (mr *MockDispatcherMockRecorder) Stop(arg0 interface{}) *gomock.Call

Stop indicates an expected call of Stop

type MockSubscriber Uses

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

MockSubscriber is a mock of Subscriber interface

func NewMockSubscriber Uses

func NewMockSubscriber(ctrl *gomock.Controller) *MockSubscriber

NewMockSubscriber creates a new mock instance

func (*MockSubscriber) EXPECT Uses

func (m *MockSubscriber) EXPECT() *MockSubscriberMockRecorder

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

func (*MockSubscriber) HandleAction Uses

func (m *MockSubscriber) HandleAction(arg0 context.Context, arg1 *iotextypes.Action) error

HandleAction mocks base method

func (*MockSubscriber) HandleBlock Uses

func (m *MockSubscriber) HandleBlock(arg0 context.Context, arg1 *iotextypes.Block) error

HandleBlock mocks base method

func (*MockSubscriber) HandleBlockSync Uses

func (m *MockSubscriber) HandleBlockSync(arg0 context.Context, arg1 *iotextypes.Block) error

HandleBlockSync mocks base method

func (*MockSubscriber) HandleConsensusMsg Uses

func (m *MockSubscriber) HandleConsensusMsg(arg0 *iotextypes.ConsensusMessage) error

HandleConsensusMsg mocks base method

func (*MockSubscriber) HandleSyncRequest Uses

func (m *MockSubscriber) HandleSyncRequest(arg0 context.Context, arg1 go_libp2p_peerstore.PeerInfo, arg2 *iotexrpc.BlockSync) error

HandleSyncRequest mocks base method

type MockSubscriberMockRecorder Uses

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

MockSubscriberMockRecorder is the mock recorder for MockSubscriber

func (*MockSubscriberMockRecorder) HandleAction Uses

func (mr *MockSubscriberMockRecorder) HandleAction(arg0, arg1 interface{}) *gomock.Call

HandleAction indicates an expected call of HandleAction

func (*MockSubscriberMockRecorder) HandleBlock Uses

func (mr *MockSubscriberMockRecorder) HandleBlock(arg0, arg1 interface{}) *gomock.Call

HandleBlock indicates an expected call of HandleBlock

func (*MockSubscriberMockRecorder) HandleBlockSync Uses

func (mr *MockSubscriberMockRecorder) HandleBlockSync(arg0, arg1 interface{}) *gomock.Call

HandleBlockSync indicates an expected call of HandleBlockSync

func (*MockSubscriberMockRecorder) HandleConsensusMsg Uses

func (mr *MockSubscriberMockRecorder) HandleConsensusMsg(arg0 interface{}) *gomock.Call

HandleConsensusMsg indicates an expected call of HandleConsensusMsg

func (*MockSubscriberMockRecorder) HandleSyncRequest Uses

func (mr *MockSubscriberMockRecorder) HandleSyncRequest(arg0, arg1, arg2 interface{}) *gomock.Call

HandleSyncRequest indicates an expected call of HandleSyncRequest

Package mock_dispatcher imports 8 packages (graph). Updated 2019-12-06. Refresh now. Tools for package owners.