mocks

package
v2.12.1-starknet-20240802 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 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 DON added in v2.4.0

type DON struct {
	mock.Mock
}

DON is an autogenerated mock type for the DON type

func NewDON added in v2.4.0

func NewDON(t interface {
	mock.TestingT
	Cleanup(func())
}) *DON

NewDON creates a new instance of DON. 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 (*DON) SendToNode added in v2.4.0

func (_m *DON) SendToNode(ctx context.Context, nodeAddress string, msg *api.Message) error

SendToNode provides a mock function with given fields: ctx, nodeAddress, msg

type Handler

type Handler struct {
	mock.Mock
}

Handler is an autogenerated mock type for the Handler type

func NewHandler

func NewHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *Handler

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

func (_m *Handler) Close() error

Close provides a mock function with given fields:

func (*Handler) HandleNodeMessage

func (_m *Handler) HandleNodeMessage(ctx context.Context, msg *api.Message, nodeAddr string) error

HandleNodeMessage provides a mock function with given fields: ctx, msg, nodeAddr

func (*Handler) HandleUserMessage

func (_m *Handler) HandleUserMessage(ctx context.Context, msg *api.Message, callbackCh chan<- handlers.UserCallbackPayload) error

HandleUserMessage provides a mock function with given fields: ctx, msg, callbackCh

func (*Handler) Start

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

Start provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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