definitionsmocks

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func (_m *Handler) HandleDefinitionBroadcast(ctx context.Context, state *core.BatchState, msg *core.Message, data core.DataArray, tx *fftypes.UUID) (definitions.HandlerResult, error)

HandleDefinitionBroadcast provides a mock function with given fields: ctx, state, msg, data, tx

type Sender

type Sender struct {
	mock.Mock
}

Sender is an autogenerated mock type for the Sender type

func NewSender

func NewSender(t interface {
	mock.TestingT
	Cleanup(func())
}) *Sender

NewSender creates a new instance of Sender. 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 (*Sender) ClaimIdentity

func (_m *Sender) ClaimIdentity(ctx context.Context, def *core.IdentityClaim, signingIdentity *core.SignerRef, parentSigner *core.SignerRef) error

ClaimIdentity provides a mock function with given fields: ctx, def, signingIdentity, parentSigner

func (*Sender) DefineContractAPI

func (_m *Sender) DefineContractAPI(ctx context.Context, httpServerURL string, api *core.ContractAPI, waitConfirm bool, topics []string) error

DefineContractAPI provides a mock function with given fields: ctx, httpServerURL, api, waitConfirm, topics

func (*Sender) DefineDatatype

func (_m *Sender) DefineDatatype(ctx context.Context, datatype *core.Datatype, waitConfirm bool) error

DefineDatatype provides a mock function with given fields: ctx, datatype, waitConfirm

func (*Sender) DefineFFI

func (_m *Sender) DefineFFI(ctx context.Context, ffi *fftypes.FFI, waitConfirm bool, topics []string) error

DefineFFI provides a mock function with given fields: ctx, ffi, waitConfirm, topics

func (*Sender) DefineTokenPool

func (_m *Sender) DefineTokenPool(ctx context.Context, pool *core.TokenPool, waitConfirm bool) error

DefineTokenPool provides a mock function with given fields: ctx, pool, waitConfirm

func (*Sender) Name

func (_m *Sender) Name() string

Name provides a mock function with given fields:

func (*Sender) PublishContractAPI

func (_m *Sender) PublishContractAPI(ctx context.Context, httpServerURL string, name string, networkName string, waitConfirm bool, topics []string) (*core.ContractAPI, error)

PublishContractAPI provides a mock function with given fields: ctx, httpServerURL, name, networkName, waitConfirm, topics

func (*Sender) PublishFFI

func (_m *Sender) PublishFFI(ctx context.Context, name string, version string, networkName string, waitConfirm bool, topics []string) (*fftypes.FFI, error)

PublishFFI provides a mock function with given fields: ctx, name, version, networkName, waitConfirm, topics

func (*Sender) PublishTokenPool

func (_m *Sender) PublishTokenPool(ctx context.Context, poolNameOrID string, networkName string, waitConfirm bool) (*core.TokenPool, error)

PublishTokenPool provides a mock function with given fields: ctx, poolNameOrID, networkName, waitConfirm

func (*Sender) UpdateIdentity

func (_m *Sender) UpdateIdentity(ctx context.Context, identity *core.Identity, def *core.IdentityUpdate, signingIdentity *core.SignerRef, waitConfirm bool) error

UpdateIdentity provides a mock function with given fields: ctx, identity, def, signingIdentity, waitConfirm

Jump to

Keyboard shortcuts

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