mocks

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	mock.Mock
}

Handler is an autogenerated mock type for the Handler type

func (*Handler) Finalize

func (_m *Handler) Finalize(logger log.Logger) (types.Handler, error)

Finalize provides a mock function with given fields: logger

func (*Handler) HandleMessage

func (_m *Handler) HandleMessage(logger log.Logger, msg types.Message) error

HandleMessage provides a mock function with given fields: logger, msg

func (*Handler) IsHandled

func (_m *Handler) IsHandled(logger log.Logger, id string) bool

IsHandled provides a mock function with given fields: logger, id

func (*Handler) MessageType

func (_m *Handler) MessageType() types.MessageType

MessageType provides a mock function with given fields:

type Message

type Message struct {
	mock.Mock
}

Message is an autogenerated mock type for the Message type

func (*Message) GetId

func (_m *Message) GetId() string

GetId provides a mock function with given fields:

func (*Message) GetMessageType

func (_m *Message) GetMessageType() types.MessageType

GetMessageType provides a mock function with given fields:

func (*Message) IsValid

func (_m *Message) IsValid() bool

IsValid provides a mock function with given fields:

type PeerManager

type PeerManager struct {
	mock.Mock
}

PeerManager is an autogenerated mock type for the PeerManager type

func (*PeerManager) MustSend

func (_m *PeerManager) MustSend(id string, msg proto.Message)

MustSend provides a mock function with given fields: id, msg

func (*PeerManager) NumPeers

func (_m *PeerManager) NumPeers() uint32

NumPeers provides a mock function with given fields:

func (*PeerManager) SelfID

func (_m *PeerManager) SelfID() string

SelfID provides a mock function with given fields:

type StateChangedListener

type StateChangedListener struct {
	mock.Mock
}

StateChangedListener is an autogenerated mock type for the StateChangedListener type

func (*StateChangedListener) OnStateChanged

func (_m *StateChangedListener) OnStateChanged(oldState types.MainState, newState types.MainState)

OnStateChanged provides a mock function with given fields: oldState, newState

Jump to

Keyboard shortcuts

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