mocks

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	mock.Mock
}

Token is an autogenerated mock type for the Token type

func NewToken

func NewToken(t interface {
	mock.TestingT
	Cleanup(func())
}) *Token

NewToken creates a new instance of Token. 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 (*Token) AcceptTransferInstruction

func (_m *Token) AcceptTransferInstruction(ctx context.Context, partyID string, instructionCID string, instrumentAdmin string) error

AcceptTransferInstruction provides a mock function with given fields: ctx, partyID, instructionCID, instrumentAdmin

func (*Token) Burn

func (_m *Token) Burn(ctx context.Context, req *token.BurnRequest) error

Burn provides a mock function with given fields: ctx, req

func (*Token) EXPECT

func (_m *Token) EXPECT() *Token_Expecter

func (*Token) ExecuteTransfer

func (_m *Token) ExecuteTransfer(ctx context.Context, req *token.ExecuteTransferRequest) error

ExecuteTransfer provides a mock function with given fields: ctx, req

func (*Token) FindPendingInboundTransferInstructions

func (_m *Token) FindPendingInboundTransferInstructions(ctx context.Context, partyID string) ([]string, error)

FindPendingInboundTransferInstructions provides a mock function with given fields: ctx, partyID

func (*Token) GetAllHoldings

func (_m *Token) GetAllHoldings(ctx context.Context) ([]*token.Holding, error)

GetAllHoldings provides a mock function with given fields: ctx

func (*Token) GetBalanceByFingerprint

func (_m *Token) GetBalanceByFingerprint(ctx context.Context, fingerprint string, tokenSymbol string) (string, error)

GetBalanceByFingerprint provides a mock function with given fields: ctx, fingerprint, tokenSymbol

func (*Token) GetBalanceByPartyID

func (_m *Token) GetBalanceByPartyID(ctx context.Context, partyID string, tokenSymbol string) (string, error)

GetBalanceByPartyID provides a mock function with given fields: ctx, partyID, tokenSymbol

func (*Token) GetHoldings

func (_m *Token) GetHoldings(ctx context.Context, ownerParty string, tokenSymbol string) ([]*token.Holding, error)

GetHoldings provides a mock function with given fields: ctx, ownerParty, tokenSymbol

func (*Token) GetHoldingsByParty

func (_m *Token) GetHoldingsByParty(ctx context.Context, ownerParty string, instrumentID string) ([]*token.Holding, error)

GetHoldingsByParty provides a mock function with given fields: ctx, ownerParty, instrumentID

func (*Token) GetTokenConfigCID

func (_m *Token) GetTokenConfigCID(ctx context.Context, tokenSymbol string) (string, error)

GetTokenConfigCID provides a mock function with given fields: ctx, tokenSymbol

func (*Token) GetTokenTransferEvents

func (_m *Token) GetTokenTransferEvents(ctx context.Context) ([]*token.TokenTransferEvent, error)

GetTokenTransferEvents provides a mock function with given fields: ctx

func (*Token) GetTotalSupply

func (_m *Token) GetTotalSupply(ctx context.Context, tokenSymbol string) (string, error)

GetTotalSupply provides a mock function with given fields: ctx, tokenSymbol

func (*Token) GetTransferFactory

func (_m *Token) GetTransferFactory(ctx context.Context) (*token.TransferFactoryInfo, error)

GetTransferFactory provides a mock function with given fields: ctx

func (*Token) Mint

func (_m *Token) Mint(ctx context.Context, req *token.MintRequest) (string, error)

Mint provides a mock function with given fields: ctx, req

func (*Token) PrepareAcceptTransfer

func (_m *Token) PrepareAcceptTransfer(ctx context.Context, partyID string, instructionCID string, instrumentAdmin string) (*token.PreparedTransfer, error)

PrepareAcceptTransfer provides a mock function with given fields: ctx, partyID, instructionCID, instrumentAdmin

func (*Token) PrepareTransfer

func (_m *Token) PrepareTransfer(ctx context.Context, req *token.PrepareTransferRequest) (*token.PreparedTransfer, error)

PrepareTransfer provides a mock function with given fields: ctx, req

func (*Token) TransferByFingerprint

func (_m *Token) TransferByFingerprint(ctx context.Context, idempotencyKey string, fromFingerprint string, toFingerprint string, amount string, tokenSymbol string) error

TransferByFingerprint provides a mock function with given fields: ctx, idempotencyKey, fromFingerprint, toFingerprint, amount, tokenSymbol

func (*Token) TransferByPartyID

func (_m *Token) TransferByPartyID(ctx context.Context, idempotencyKey string, fromParty string, toParty string, amount string, tokenSymbol string) error

TransferByPartyID provides a mock function with given fields: ctx, idempotencyKey, fromParty, toParty, amount, tokenSymbol

func (*Token) TransferInternalByPartyID

func (_m *Token) TransferInternalByPartyID(ctx context.Context, idempotencyKey string, fromParty string, toParty string, amount string, tokenSymbol string) error

TransferInternalByPartyID provides a mock function with given fields: ctx, idempotencyKey, fromParty, toParty, amount, tokenSymbol

type Token_AcceptTransferInstruction_Call

type Token_AcceptTransferInstruction_Call struct {
	*mock.Call
}

Token_AcceptTransferInstruction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AcceptTransferInstruction'

func (*Token_AcceptTransferInstruction_Call) Return

func (*Token_AcceptTransferInstruction_Call) Run

func (_c *Token_AcceptTransferInstruction_Call) Run(run func(ctx context.Context, partyID string, instructionCID string, instrumentAdmin string)) *Token_AcceptTransferInstruction_Call

func (*Token_AcceptTransferInstruction_Call) RunAndReturn

type Token_Burn_Call

type Token_Burn_Call struct {
	*mock.Call
}

Token_Burn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Burn'

func (*Token_Burn_Call) Return

func (_c *Token_Burn_Call) Return(_a0 error) *Token_Burn_Call

func (*Token_Burn_Call) Run

func (_c *Token_Burn_Call) Run(run func(ctx context.Context, req *token.BurnRequest)) *Token_Burn_Call

func (*Token_Burn_Call) RunAndReturn

func (_c *Token_Burn_Call) RunAndReturn(run func(context.Context, *token.BurnRequest) error) *Token_Burn_Call

type Token_ExecuteTransfer_Call

type Token_ExecuteTransfer_Call struct {
	*mock.Call
}

Token_ExecuteTransfer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecuteTransfer'

func (*Token_ExecuteTransfer_Call) Return

func (*Token_ExecuteTransfer_Call) Run

func (*Token_ExecuteTransfer_Call) RunAndReturn

type Token_Expecter

type Token_Expecter struct {
	// contains filtered or unexported fields
}

func (*Token_Expecter) AcceptTransferInstruction

func (_e *Token_Expecter) AcceptTransferInstruction(ctx interface{}, partyID interface{}, instructionCID interface{}, instrumentAdmin interface{}) *Token_AcceptTransferInstruction_Call

AcceptTransferInstruction is a helper method to define mock.On call

  • ctx context.Context
  • partyID string
  • instructionCID string
  • instrumentAdmin string

func (*Token_Expecter) Burn

func (_e *Token_Expecter) Burn(ctx interface{}, req interface{}) *Token_Burn_Call

Burn is a helper method to define mock.On call

  • ctx context.Context
  • req *token.BurnRequest

func (*Token_Expecter) ExecuteTransfer

func (_e *Token_Expecter) ExecuteTransfer(ctx interface{}, req interface{}) *Token_ExecuteTransfer_Call

ExecuteTransfer is a helper method to define mock.On call

  • ctx context.Context
  • req *token.ExecuteTransferRequest

func (*Token_Expecter) FindPendingInboundTransferInstructions

func (_e *Token_Expecter) FindPendingInboundTransferInstructions(ctx interface{}, partyID interface{}) *Token_FindPendingInboundTransferInstructions_Call

FindPendingInboundTransferInstructions is a helper method to define mock.On call

  • ctx context.Context
  • partyID string

func (*Token_Expecter) GetAllHoldings

func (_e *Token_Expecter) GetAllHoldings(ctx interface{}) *Token_GetAllHoldings_Call

GetAllHoldings is a helper method to define mock.On call

  • ctx context.Context

func (*Token_Expecter) GetBalanceByFingerprint

func (_e *Token_Expecter) GetBalanceByFingerprint(ctx interface{}, fingerprint interface{}, tokenSymbol interface{}) *Token_GetBalanceByFingerprint_Call

GetBalanceByFingerprint is a helper method to define mock.On call

  • ctx context.Context
  • fingerprint string
  • tokenSymbol string

func (*Token_Expecter) GetBalanceByPartyID

func (_e *Token_Expecter) GetBalanceByPartyID(ctx interface{}, partyID interface{}, tokenSymbol interface{}) *Token_GetBalanceByPartyID_Call

GetBalanceByPartyID is a helper method to define mock.On call

  • ctx context.Context
  • partyID string
  • tokenSymbol string

func (*Token_Expecter) GetHoldings

func (_e *Token_Expecter) GetHoldings(ctx interface{}, ownerParty interface{}, tokenSymbol interface{}) *Token_GetHoldings_Call

GetHoldings is a helper method to define mock.On call

  • ctx context.Context
  • ownerParty string
  • tokenSymbol string

func (*Token_Expecter) GetHoldingsByParty

func (_e *Token_Expecter) GetHoldingsByParty(ctx interface{}, ownerParty interface{}, instrumentID interface{}) *Token_GetHoldingsByParty_Call

GetHoldingsByParty is a helper method to define mock.On call

  • ctx context.Context
  • ownerParty string
  • instrumentID string

func (*Token_Expecter) GetTokenConfigCID

func (_e *Token_Expecter) GetTokenConfigCID(ctx interface{}, tokenSymbol interface{}) *Token_GetTokenConfigCID_Call

GetTokenConfigCID is a helper method to define mock.On call

  • ctx context.Context
  • tokenSymbol string

func (*Token_Expecter) GetTokenTransferEvents

func (_e *Token_Expecter) GetTokenTransferEvents(ctx interface{}) *Token_GetTokenTransferEvents_Call

GetTokenTransferEvents is a helper method to define mock.On call

  • ctx context.Context

func (*Token_Expecter) GetTotalSupply

func (_e *Token_Expecter) GetTotalSupply(ctx interface{}, tokenSymbol interface{}) *Token_GetTotalSupply_Call

GetTotalSupply is a helper method to define mock.On call

  • ctx context.Context
  • tokenSymbol string

func (*Token_Expecter) GetTransferFactory

func (_e *Token_Expecter) GetTransferFactory(ctx interface{}) *Token_GetTransferFactory_Call

GetTransferFactory is a helper method to define mock.On call

  • ctx context.Context

func (*Token_Expecter) Mint

func (_e *Token_Expecter) Mint(ctx interface{}, req interface{}) *Token_Mint_Call

Mint is a helper method to define mock.On call

  • ctx context.Context
  • req *token.MintRequest

func (*Token_Expecter) PrepareAcceptTransfer

func (_e *Token_Expecter) PrepareAcceptTransfer(ctx interface{}, partyID interface{}, instructionCID interface{}, instrumentAdmin interface{}) *Token_PrepareAcceptTransfer_Call

PrepareAcceptTransfer is a helper method to define mock.On call

  • ctx context.Context
  • partyID string
  • instructionCID string
  • instrumentAdmin string

func (*Token_Expecter) PrepareTransfer

func (_e *Token_Expecter) PrepareTransfer(ctx interface{}, req interface{}) *Token_PrepareTransfer_Call

PrepareTransfer is a helper method to define mock.On call

  • ctx context.Context
  • req *token.PrepareTransferRequest

func (*Token_Expecter) TransferByFingerprint

func (_e *Token_Expecter) TransferByFingerprint(ctx interface{}, idempotencyKey interface{}, fromFingerprint interface{}, toFingerprint interface{}, amount interface{}, tokenSymbol interface{}) *Token_TransferByFingerprint_Call

TransferByFingerprint is a helper method to define mock.On call

  • ctx context.Context
  • idempotencyKey string
  • fromFingerprint string
  • toFingerprint string
  • amount string
  • tokenSymbol string

func (*Token_Expecter) TransferByPartyID

func (_e *Token_Expecter) TransferByPartyID(ctx interface{}, idempotencyKey interface{}, fromParty interface{}, toParty interface{}, amount interface{}, tokenSymbol interface{}) *Token_TransferByPartyID_Call

TransferByPartyID is a helper method to define mock.On call

  • ctx context.Context
  • idempotencyKey string
  • fromParty string
  • toParty string
  • amount string
  • tokenSymbol string

func (*Token_Expecter) TransferInternalByPartyID

func (_e *Token_Expecter) TransferInternalByPartyID(ctx interface{}, idempotencyKey interface{}, fromParty interface{}, toParty interface{}, amount interface{}, tokenSymbol interface{}) *Token_TransferInternalByPartyID_Call

TransferInternalByPartyID is a helper method to define mock.On call

  • ctx context.Context
  • idempotencyKey string
  • fromParty string
  • toParty string
  • amount string
  • tokenSymbol string

type Token_FindPendingInboundTransferInstructions_Call

type Token_FindPendingInboundTransferInstructions_Call struct {
	*mock.Call
}

Token_FindPendingInboundTransferInstructions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindPendingInboundTransferInstructions'

func (*Token_FindPendingInboundTransferInstructions_Call) Return

func (*Token_FindPendingInboundTransferInstructions_Call) Run

func (*Token_FindPendingInboundTransferInstructions_Call) RunAndReturn

type Token_GetAllHoldings_Call

type Token_GetAllHoldings_Call struct {
	*mock.Call
}

Token_GetAllHoldings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllHoldings'

func (*Token_GetAllHoldings_Call) Return

func (*Token_GetAllHoldings_Call) Run

func (*Token_GetAllHoldings_Call) RunAndReturn

type Token_GetBalanceByFingerprint_Call

type Token_GetBalanceByFingerprint_Call struct {
	*mock.Call
}

Token_GetBalanceByFingerprint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBalanceByFingerprint'

func (*Token_GetBalanceByFingerprint_Call) Return

func (*Token_GetBalanceByFingerprint_Call) Run

func (_c *Token_GetBalanceByFingerprint_Call) Run(run func(ctx context.Context, fingerprint string, tokenSymbol string)) *Token_GetBalanceByFingerprint_Call

func (*Token_GetBalanceByFingerprint_Call) RunAndReturn

type Token_GetBalanceByPartyID_Call

type Token_GetBalanceByPartyID_Call struct {
	*mock.Call
}

Token_GetBalanceByPartyID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBalanceByPartyID'

func (*Token_GetBalanceByPartyID_Call) Return

func (*Token_GetBalanceByPartyID_Call) Run

func (_c *Token_GetBalanceByPartyID_Call) Run(run func(ctx context.Context, partyID string, tokenSymbol string)) *Token_GetBalanceByPartyID_Call

func (*Token_GetBalanceByPartyID_Call) RunAndReturn

type Token_GetHoldingsByParty_Call

type Token_GetHoldingsByParty_Call struct {
	*mock.Call
}

Token_GetHoldingsByParty_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHoldingsByParty'

func (*Token_GetHoldingsByParty_Call) Return

func (*Token_GetHoldingsByParty_Call) Run

func (_c *Token_GetHoldingsByParty_Call) Run(run func(ctx context.Context, ownerParty string, instrumentID string)) *Token_GetHoldingsByParty_Call

func (*Token_GetHoldingsByParty_Call) RunAndReturn

type Token_GetHoldings_Call

type Token_GetHoldings_Call struct {
	*mock.Call
}

Token_GetHoldings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHoldings'

func (*Token_GetHoldings_Call) Return

func (*Token_GetHoldings_Call) Run

func (_c *Token_GetHoldings_Call) Run(run func(ctx context.Context, ownerParty string, tokenSymbol string)) *Token_GetHoldings_Call

func (*Token_GetHoldings_Call) RunAndReturn

type Token_GetTokenConfigCID_Call

type Token_GetTokenConfigCID_Call struct {
	*mock.Call
}

Token_GetTokenConfigCID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTokenConfigCID'

func (*Token_GetTokenConfigCID_Call) Return

func (*Token_GetTokenConfigCID_Call) Run

func (*Token_GetTokenConfigCID_Call) RunAndReturn

type Token_GetTokenTransferEvents_Call

type Token_GetTokenTransferEvents_Call struct {
	*mock.Call
}

Token_GetTokenTransferEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTokenTransferEvents'

func (*Token_GetTokenTransferEvents_Call) Return

func (*Token_GetTokenTransferEvents_Call) Run

func (*Token_GetTokenTransferEvents_Call) RunAndReturn

type Token_GetTotalSupply_Call

type Token_GetTotalSupply_Call struct {
	*mock.Call
}

Token_GetTotalSupply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTotalSupply'

func (*Token_GetTotalSupply_Call) Return

func (*Token_GetTotalSupply_Call) Run

func (_c *Token_GetTotalSupply_Call) Run(run func(ctx context.Context, tokenSymbol string)) *Token_GetTotalSupply_Call

func (*Token_GetTotalSupply_Call) RunAndReturn

type Token_GetTransferFactory_Call

type Token_GetTransferFactory_Call struct {
	*mock.Call
}

Token_GetTransferFactory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTransferFactory'

func (*Token_GetTransferFactory_Call) Return

func (*Token_GetTransferFactory_Call) Run

func (*Token_GetTransferFactory_Call) RunAndReturn

type Token_Mint_Call

type Token_Mint_Call struct {
	*mock.Call
}

Token_Mint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Mint'

func (*Token_Mint_Call) Return

func (_c *Token_Mint_Call) Return(_a0 string, _a1 error) *Token_Mint_Call

func (*Token_Mint_Call) Run

func (_c *Token_Mint_Call) Run(run func(ctx context.Context, req *token.MintRequest)) *Token_Mint_Call

func (*Token_Mint_Call) RunAndReturn

func (_c *Token_Mint_Call) RunAndReturn(run func(context.Context, *token.MintRequest) (string, error)) *Token_Mint_Call

type Token_PrepareAcceptTransfer_Call

type Token_PrepareAcceptTransfer_Call struct {
	*mock.Call
}

Token_PrepareAcceptTransfer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PrepareAcceptTransfer'

func (*Token_PrepareAcceptTransfer_Call) Return

func (*Token_PrepareAcceptTransfer_Call) Run

func (_c *Token_PrepareAcceptTransfer_Call) Run(run func(ctx context.Context, partyID string, instructionCID string, instrumentAdmin string)) *Token_PrepareAcceptTransfer_Call

func (*Token_PrepareAcceptTransfer_Call) RunAndReturn

type Token_PrepareTransfer_Call

type Token_PrepareTransfer_Call struct {
	*mock.Call
}

Token_PrepareTransfer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PrepareTransfer'

func (*Token_PrepareTransfer_Call) Return

func (*Token_PrepareTransfer_Call) Run

func (*Token_PrepareTransfer_Call) RunAndReturn

type Token_TransferByFingerprint_Call

type Token_TransferByFingerprint_Call struct {
	*mock.Call
}

Token_TransferByFingerprint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransferByFingerprint'

func (*Token_TransferByFingerprint_Call) Return

func (*Token_TransferByFingerprint_Call) Run

func (_c *Token_TransferByFingerprint_Call) Run(run func(ctx context.Context, idempotencyKey string, fromFingerprint string, toFingerprint string, amount string, tokenSymbol string)) *Token_TransferByFingerprint_Call

func (*Token_TransferByFingerprint_Call) RunAndReturn

type Token_TransferByPartyID_Call

type Token_TransferByPartyID_Call struct {
	*mock.Call
}

Token_TransferByPartyID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransferByPartyID'

func (*Token_TransferByPartyID_Call) Return

func (*Token_TransferByPartyID_Call) Run

func (_c *Token_TransferByPartyID_Call) Run(run func(ctx context.Context, idempotencyKey string, fromParty string, toParty string, amount string, tokenSymbol string)) *Token_TransferByPartyID_Call

func (*Token_TransferByPartyID_Call) RunAndReturn

type Token_TransferInternalByPartyID_Call

type Token_TransferInternalByPartyID_Call struct {
	*mock.Call
}

Token_TransferInternalByPartyID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransferInternalByPartyID'

func (*Token_TransferInternalByPartyID_Call) Return

func (*Token_TransferInternalByPartyID_Call) Run

func (_c *Token_TransferInternalByPartyID_Call) Run(run func(ctx context.Context, idempotencyKey string, fromParty string, toParty string, amount string, tokenSymbol string)) *Token_TransferInternalByPartyID_Call

func (*Token_TransferInternalByPartyID_Call) RunAndReturn

type UserLister

type UserLister struct {
	mock.Mock
}

UserLister is an autogenerated mock type for the UserLister type

func NewUserLister

func NewUserLister(t interface {
	mock.TestingT
	Cleanup(func())
}) *UserLister

NewUserLister creates a new instance of UserLister. 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 (*UserLister) EXPECT

func (_m *UserLister) EXPECT() *UserLister_Expecter

func (*UserLister) ListCustodialUsers

func (_m *UserLister) ListCustodialUsers(ctx context.Context) ([]*user.User, error)

ListCustodialUsers provides a mock function with given fields: ctx

type UserLister_Expecter

type UserLister_Expecter struct {
	// contains filtered or unexported fields
}

func (*UserLister_Expecter) ListCustodialUsers

func (_e *UserLister_Expecter) ListCustodialUsers(ctx interface{}) *UserLister_ListCustodialUsers_Call

ListCustodialUsers is a helper method to define mock.On call

  • ctx context.Context

type UserLister_ListCustodialUsers_Call

type UserLister_ListCustodialUsers_Call struct {
	*mock.Call
}

UserLister_ListCustodialUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListCustodialUsers'

func (*UserLister_ListCustodialUsers_Call) Return

func (*UserLister_ListCustodialUsers_Call) Run

func (*UserLister_ListCustodialUsers_Call) RunAndReturn

Jump to

Keyboard shortcuts

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