mocks

package
v2.11.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) Close

func (_m *Peer) Close() error

Close provides a mock function with given fields:

func (*Peer) HealthReport

func (_m *Peer) HealthReport() map[string]error

HealthReport provides a mock function with given fields:

func (*Peer) ID

func (_m *Peer) ID() ragep2ptypes.PeerID

ID provides a mock function with given fields:

func (*Peer) Name

func (_m *Peer) Name() string

Name provides a mock function with given fields:

func (*Peer) Ready

func (_m *Peer) Ready() error

Ready provides a mock function with given fields:

func (*Peer) Receive

func (_m *Peer) Receive() <-chan types.Message

Receive provides a mock function with given fields:

func (*Peer) Send

func (_m *Peer) Send(peerID ragep2ptypes.PeerID, msg []byte) error

Send provides a mock function with given fields: peerID, msg

func (*Peer) Start

func (_m *Peer) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

func (*Peer) UpdateConnections

func (_m *Peer) UpdateConnections(peers map[ragep2ptypes.PeerID]types.StreamConfig) error

UpdateConnections provides a mock function with given fields: peers

type PeerWrapper

type PeerWrapper struct {
	mock.Mock
}

PeerWrapper is an autogenerated mock type for the PeerWrapper type

func NewPeerWrapper

func NewPeerWrapper(t interface {
	mock.TestingT
	Cleanup(func())
}) *PeerWrapper

NewPeerWrapper creates a new instance of PeerWrapper. 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 (*PeerWrapper) Close

func (_m *PeerWrapper) Close() error

Close provides a mock function with given fields:

func (*PeerWrapper) GetPeer

func (_m *PeerWrapper) GetPeer() types.Peer

GetPeer provides a mock function with given fields:

func (*PeerWrapper) HealthReport

func (_m *PeerWrapper) HealthReport() map[string]error

HealthReport provides a mock function with given fields:

func (*PeerWrapper) Name

func (_m *PeerWrapper) Name() string

Name provides a mock function with given fields:

func (*PeerWrapper) Ready

func (_m *PeerWrapper) Ready() error

Ready provides a mock function with given fields:

func (*PeerWrapper) Start

func (_m *PeerWrapper) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

type Signer

type Signer struct {
	mock.Mock
}

Signer is an autogenerated mock type for the Signer type

func NewSigner

func NewSigner(t interface {
	mock.TestingT
	Cleanup(func())
}) *Signer

NewSigner creates a new instance of Signer. 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 (*Signer) Sign

func (_m *Signer) Sign(data []byte) ([]byte, error)

Sign provides a mock function with given fields: data

Jump to

Keyboard shortcuts

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