mocks

package
v0.2.1-beta.8 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockNetwork

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

MockNetwork is a mock of Network interface.

func NewMockNetwork

func NewMockNetwork(ctrl *gomock.Controller) *MockNetwork

NewMockNetwork creates a new mock instance.

func (*MockNetwork) EXPECT

func (m *MockNetwork) EXPECT() *MockNetworkMockRecorder

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

func (*MockNetwork) RegisterDirectProtocolWithChannel

func (m *MockNetwork) RegisterDirectProtocolWithChannel(protocol string, ingressChannel chan service.DirectMessage) chan service.DirectMessage

RegisterDirectProtocolWithChannel mocks base method.

func (*MockNetwork) SendWrappedMessage

func (m *MockNetwork) SendWrappedMessage(ctx context.Context, nodeID p2pcrypto.PublicKey, protocol string, payload *service.DataMsgWrapper) error

SendWrappedMessage mocks base method.

func (*MockNetwork) SubscribePeerEvents

func (m *MockNetwork) SubscribePeerEvents() (chan p2pcrypto.PublicKey, chan p2pcrypto.PublicKey)

SubscribePeerEvents mocks base method.

type MockNetworkMockRecorder

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

MockNetworkMockRecorder is the mock recorder for MockNetwork.

func (*MockNetworkMockRecorder) RegisterDirectProtocolWithChannel

func (mr *MockNetworkMockRecorder) RegisterDirectProtocolWithChannel(protocol, ingressChannel interface{}) *gomock.Call

RegisterDirectProtocolWithChannel indicates an expected call of RegisterDirectProtocolWithChannel.

func (*MockNetworkMockRecorder) SendWrappedMessage

func (mr *MockNetworkMockRecorder) SendWrappedMessage(ctx, nodeID, protocol, payload interface{}) *gomock.Call

SendWrappedMessage indicates an expected call of SendWrappedMessage.

func (*MockNetworkMockRecorder) SubscribePeerEvents

func (mr *MockNetworkMockRecorder) SubscribePeerEvents() *gomock.Call

SubscribePeerEvents indicates an expected call of SubscribePeerEvents.

type MockTime

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

MockTime is a mock of Time interface.

func NewMockTime

func NewMockTime(ctrl *gomock.Controller) *MockTime

NewMockTime creates a new mock instance.

func (*MockTime) EXPECT

func (m *MockTime) EXPECT() *MockTimeMockRecorder

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

func (*MockTime) Now

func (m *MockTime) Now() time.Time

Now mocks base method.

type MockTimeMockRecorder

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

MockTimeMockRecorder is the mock recorder for MockTime.

func (*MockTimeMockRecorder) Now

func (mr *MockTimeMockRecorder) Now() *gomock.Call

Now indicates an expected call of Now.

Jump to

Keyboard shortcuts

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