mocks

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvelopeSender added in v1.1.1

type EnvelopeSender struct {
	mock.Mock
}

EnvelopeSender is an autogenerated mock type for the EnvelopeSender type

func NewEnvelopeSender added in v1.1.1

func NewEnvelopeSender(t interface {
	mock.TestingT
	Cleanup(func())
}) *EnvelopeSender

NewEnvelopeSender creates a new instance of EnvelopeSender. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*EnvelopeSender) SendEnvelope added in v1.1.1

func (_m *EnvelopeSender) SendEnvelope(_a0 p2p.Envelope) bool

SendEnvelope provides a mock function with given fields: _a0

func (*EnvelopeSender) TrySendEnvelope added in v1.1.1

func (_m *EnvelopeSender) TrySendEnvelope(_a0 p2p.Envelope) bool

TrySendEnvelope provides a mock function with given fields: _a0

type NodeInfo

type NodeInfo struct {
	mock.Mock
}

NodeInfo is an autogenerated mock type for the NodeInfo type

func NewNodeInfo

func NewNodeInfo(t interface {
	mock.TestingT
	Cleanup(func())
}) *NodeInfo

NewNodeInfo creates a new instance of NodeInfo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*NodeInfo) CompatibleWith

func (_m *NodeInfo) CompatibleWith(other p2p.NodeInfo) error

CompatibleWith provides a mock function with given fields: other

func (*NodeInfo) ID

func (_m *NodeInfo) ID() p2p.ID

ID provides a mock function with given fields:

func (*NodeInfo) NetAddress

func (_m *NodeInfo) NetAddress() (*p2p.NetAddress, error)

NetAddress provides a mock function with given fields:

func (*NodeInfo) Validate

func (_m *NodeInfo) Validate() error

Validate provides a mock function with given fields:

type Peer

type Peer struct {
	mock.Mock
}

Peer is an autogenerated mock type for the Peer type

func NewPeer

func NewPeer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Peer

NewPeer creates a new instance of Peer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Peer) CloseConn

func (_m *Peer) CloseConn() error

CloseConn provides a mock function with given fields:

func (*Peer) FlushStop

func (_m *Peer) FlushStop()

FlushStop provides a mock function with given fields:

func (*Peer) Get

func (_m *Peer) Get(_a0 string) interface{}

Get provides a mock function with given fields: _a0

func (*Peer) GetRemovalFailed added in v1.1.1

func (_m *Peer) GetRemovalFailed() bool

GetRemovalFailed provides a mock function with given fields:

func (*Peer) ID

func (_m *Peer) ID() p2p.ID

ID provides a mock function with given fields:

func (*Peer) IsOutbound

func (_m *Peer) IsOutbound() bool

IsOutbound provides a mock function with given fields:

func (*Peer) IsPersistent

func (_m *Peer) IsPersistent() bool

IsPersistent provides a mock function with given fields:

func (*Peer) IsRunning

func (_m *Peer) IsRunning() bool

IsRunning provides a mock function with given fields:

func (*Peer) NodeInfo

func (_m *Peer) NodeInfo() p2p.NodeInfo

NodeInfo provides a mock function with given fields:

func (*Peer) OnReset

func (_m *Peer) OnReset() error

OnReset provides a mock function with given fields:

func (*Peer) OnStart

func (_m *Peer) OnStart() error

OnStart provides a mock function with given fields:

func (*Peer) OnStop

func (_m *Peer) OnStop()

OnStop provides a mock function with given fields:

func (*Peer) Quit

func (_m *Peer) Quit() <-chan struct{}

Quit provides a mock function with given fields:

func (*Peer) RemoteAddr

func (_m *Peer) RemoteAddr() net.Addr

RemoteAddr provides a mock function with given fields:

func (*Peer) RemoteIP

func (_m *Peer) RemoteIP() net.IP

RemoteIP provides a mock function with given fields:

func (*Peer) Reset

func (_m *Peer) Reset() error

Reset provides a mock function with given fields:

func (*Peer) Send

func (_m *Peer) Send(_a0 byte, _a1 []byte) bool

Send provides a mock function with given fields: _a0, _a1

func (*Peer) Set

func (_m *Peer) Set(_a0 string, _a1 interface{})

Set provides a mock function with given fields: _a0, _a1

func (*Peer) SetLogger

func (_m *Peer) SetLogger(_a0 log.Logger)

SetLogger provides a mock function with given fields: _a0

func (*Peer) SetRemovalFailed added in v1.1.1

func (_m *Peer) SetRemovalFailed()

SetRemovalFailed provides a mock function with given fields:

func (*Peer) SocketAddr

func (_m *Peer) SocketAddr() *p2p.NetAddress

SocketAddr provides a mock function with given fields:

func (*Peer) Start

func (_m *Peer) Start() error

Start provides a mock function with given fields:

func (*Peer) Status

func (_m *Peer) Status() conn.ConnectionStatus

Status provides a mock function with given fields:

func (*Peer) Stop

func (_m *Peer) Stop() error

Stop provides a mock function with given fields:

func (*Peer) String

func (_m *Peer) String() string

String provides a mock function with given fields:

func (*Peer) TrySend

func (_m *Peer) TrySend(_a0 byte, _a1 []byte) bool

TrySend provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

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