mocks

package
v2.12.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

type Dispatcher struct {
	mock.Mock
}

Dispatcher is an autogenerated mock type for the Dispatcher type

func NewDispatcher

func NewDispatcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *Dispatcher

NewDispatcher creates a new instance of Dispatcher. 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 (*Dispatcher) RemoveReceiver

func (_m *Dispatcher) RemoveReceiver(capabilityId string, donId string)

RemoveReceiver provides a mock function with given fields: capabilityId, donId

func (*Dispatcher) Send

func (_m *Dispatcher) Send(peerID ragep2ptypes.PeerID, msgBody *types.MessageBody) error

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

func (*Dispatcher) SetReceiver

func (_m *Dispatcher) SetReceiver(capabilityId string, donId string, receiver types.Receiver) error

SetReceiver provides a mock function with given fields: capabilityId, donId, receiver

type Receiver

type Receiver struct {
	mock.Mock
}

Receiver is an autogenerated mock type for the Receiver type

func NewReceiver

func NewReceiver(t interface {
	mock.TestingT
	Cleanup(func())
}) *Receiver

NewReceiver creates a new instance of Receiver. 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 (*Receiver) Receive

func (_m *Receiver) Receive(msg *types.MessageBody)

Receive provides a mock function with given fields: msg

Jump to

Keyboard shortcuts

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