mocks

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

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

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) GetBalance

func (_m *Client) GetBalance(ctx context.Context, partyID string, admin string, id string) (*indexer.Balance, error)

GetBalance provides a mock function with given fields: ctx, partyID, admin, id

func (*Client) GetEvent

func (_m *Client) GetEvent(ctx context.Context, contractID string) (*indexer.ParsedEvent, error)

GetEvent provides a mock function with given fields: ctx, contractID

func (*Client) GetPendingTransfers added in v0.8.0

func (_m *Client) GetPendingTransfers(ctx context.Context, p indexer.Pagination) (*indexer.Page[indexer.Transfer], error)

GetPendingTransfers provides a mock function with given fields: ctx, p

func (*Client) GetToken

func (_m *Client) GetToken(ctx context.Context, admin string, id string) (*indexer.Token, error)

GetToken provides a mock function with given fields: ctx, admin, id

func (*Client) GetTransfer added in v0.8.0

func (_m *Client) GetTransfer(ctx context.Context, contractID string) (*indexer.Transfer, error)

GetTransfer provides a mock function with given fields: ctx, contractID

func (*Client) GetTransfers added in v0.8.0

func (_m *Client) GetTransfers(ctx context.Context, partyID string, query indexer.TransferQuery, p indexer.Pagination) (*indexer.Page[indexer.Transfer], error)

GetTransfers provides a mock function with given fields: ctx, partyID, query, p

func (*Client) ListBalancesForParty

func (_m *Client) ListBalancesForParty(ctx context.Context, partyID string, p indexer.Pagination) (*indexer.Page[*indexer.Balance], error)

ListBalancesForParty provides a mock function with given fields: ctx, partyID, p

func (*Client) ListBalancesForToken

func (_m *Client) ListBalancesForToken(ctx context.Context, admin string, id string, p indexer.Pagination) (*indexer.Page[*indexer.Balance], error)

ListBalancesForToken provides a mock function with given fields: ctx, admin, id, p

func (*Client) ListPartyEvents

func (_m *Client) ListPartyEvents(ctx context.Context, partyID string, f indexer.EventFilter, p indexer.Pagination) (*indexer.Page[*indexer.ParsedEvent], error)

ListPartyEvents provides a mock function with given fields: ctx, partyID, f, p

func (*Client) ListTokenEvents

func (_m *Client) ListTokenEvents(ctx context.Context, admin string, id string, f indexer.EventFilter, p indexer.Pagination) (*indexer.Page[*indexer.ParsedEvent], error)

ListTokenEvents provides a mock function with given fields: ctx, admin, id, f, p

func (*Client) ListTokens

func (_m *Client) ListTokens(ctx context.Context, p indexer.Pagination) (*indexer.Page[*indexer.Token], error)

ListTokens provides a mock function with given fields: ctx, p

func (*Client) TotalSupply

func (_m *Client) TotalSupply(ctx context.Context, admin string, id string) (string, error)

TotalSupply provides a mock function with given fields: ctx, admin, id

type Client_Expecter

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

func (*Client_Expecter) GetBalance

func (_e *Client_Expecter) GetBalance(ctx interface{}, partyID interface{}, admin interface{}, id interface{}) *Client_GetBalance_Call

GetBalance is a helper method to define mock.On call

  • ctx context.Context
  • partyID string
  • admin string
  • id string

func (*Client_Expecter) GetEvent

func (_e *Client_Expecter) GetEvent(ctx interface{}, contractID interface{}) *Client_GetEvent_Call

GetEvent is a helper method to define mock.On call

  • ctx context.Context
  • contractID string

func (*Client_Expecter) GetPendingTransfers added in v0.8.0

func (_e *Client_Expecter) GetPendingTransfers(ctx interface{}, p interface{}) *Client_GetPendingTransfers_Call

GetPendingTransfers is a helper method to define mock.On call

  • ctx context.Context
  • p indexer.Pagination

func (*Client_Expecter) GetToken

func (_e *Client_Expecter) GetToken(ctx interface{}, admin interface{}, id interface{}) *Client_GetToken_Call

GetToken is a helper method to define mock.On call

  • ctx context.Context
  • admin string
  • id string

func (*Client_Expecter) GetTransfer added in v0.8.0

func (_e *Client_Expecter) GetTransfer(ctx interface{}, contractID interface{}) *Client_GetTransfer_Call

GetTransfer is a helper method to define mock.On call

  • ctx context.Context
  • contractID string

func (*Client_Expecter) GetTransfers added in v0.8.0

func (_e *Client_Expecter) GetTransfers(ctx interface{}, partyID interface{}, query interface{}, p interface{}) *Client_GetTransfers_Call

GetTransfers is a helper method to define mock.On call

  • ctx context.Context
  • partyID string
  • query indexer.TransferQuery
  • p indexer.Pagination

func (*Client_Expecter) ListBalancesForParty

func (_e *Client_Expecter) ListBalancesForParty(ctx interface{}, partyID interface{}, p interface{}) *Client_ListBalancesForParty_Call

ListBalancesForParty is a helper method to define mock.On call

  • ctx context.Context
  • partyID string
  • p indexer.Pagination

func (*Client_Expecter) ListBalancesForToken

func (_e *Client_Expecter) ListBalancesForToken(ctx interface{}, admin interface{}, id interface{}, p interface{}) *Client_ListBalancesForToken_Call

ListBalancesForToken is a helper method to define mock.On call

  • ctx context.Context
  • admin string
  • id string
  • p indexer.Pagination

func (*Client_Expecter) ListPartyEvents

func (_e *Client_Expecter) ListPartyEvents(ctx interface{}, partyID interface{}, f interface{}, p interface{}) *Client_ListPartyEvents_Call

ListPartyEvents is a helper method to define mock.On call

  • ctx context.Context
  • partyID string
  • f indexer.EventFilter
  • p indexer.Pagination

func (*Client_Expecter) ListTokenEvents

func (_e *Client_Expecter) ListTokenEvents(ctx interface{}, admin interface{}, id interface{}, f interface{}, p interface{}) *Client_ListTokenEvents_Call

ListTokenEvents is a helper method to define mock.On call

  • ctx context.Context
  • admin string
  • id string
  • f indexer.EventFilter
  • p indexer.Pagination

func (*Client_Expecter) ListTokens

func (_e *Client_Expecter) ListTokens(ctx interface{}, p interface{}) *Client_ListTokens_Call

ListTokens is a helper method to define mock.On call

  • ctx context.Context
  • p indexer.Pagination

func (*Client_Expecter) TotalSupply

func (_e *Client_Expecter) TotalSupply(ctx interface{}, admin interface{}, id interface{}) *Client_TotalSupply_Call

TotalSupply is a helper method to define mock.On call

  • ctx context.Context
  • admin string
  • id string

type Client_GetBalance_Call

type Client_GetBalance_Call struct {
	*mock.Call
}

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

func (*Client_GetBalance_Call) Return

func (*Client_GetBalance_Call) Run

func (_c *Client_GetBalance_Call) Run(run func(ctx context.Context, partyID string, admin string, id string)) *Client_GetBalance_Call

func (*Client_GetBalance_Call) RunAndReturn

type Client_GetEvent_Call

type Client_GetEvent_Call struct {
	*mock.Call
}

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

func (*Client_GetEvent_Call) Return

func (*Client_GetEvent_Call) Run

func (_c *Client_GetEvent_Call) Run(run func(ctx context.Context, contractID string)) *Client_GetEvent_Call

func (*Client_GetEvent_Call) RunAndReturn

type Client_GetPendingTransfers_Call added in v0.8.0

type Client_GetPendingTransfers_Call struct {
	*mock.Call
}

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

func (*Client_GetPendingTransfers_Call) Return added in v0.8.0

func (*Client_GetPendingTransfers_Call) Run added in v0.8.0

func (*Client_GetPendingTransfers_Call) RunAndReturn added in v0.8.0

type Client_GetToken_Call

type Client_GetToken_Call struct {
	*mock.Call
}

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

func (*Client_GetToken_Call) Return

func (*Client_GetToken_Call) Run

func (_c *Client_GetToken_Call) Run(run func(ctx context.Context, admin string, id string)) *Client_GetToken_Call

func (*Client_GetToken_Call) RunAndReturn

type Client_GetTransfer_Call added in v0.8.0

type Client_GetTransfer_Call struct {
	*mock.Call
}

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

func (*Client_GetTransfer_Call) Return added in v0.8.0

func (*Client_GetTransfer_Call) Run added in v0.8.0

func (_c *Client_GetTransfer_Call) Run(run func(ctx context.Context, contractID string)) *Client_GetTransfer_Call

func (*Client_GetTransfer_Call) RunAndReturn added in v0.8.0

type Client_GetTransfers_Call added in v0.8.0

type Client_GetTransfers_Call struct {
	*mock.Call
}

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

func (*Client_GetTransfers_Call) Return added in v0.8.0

func (*Client_GetTransfers_Call) Run added in v0.8.0

func (*Client_GetTransfers_Call) RunAndReturn added in v0.8.0

type Client_ListBalancesForParty_Call

type Client_ListBalancesForParty_Call struct {
	*mock.Call
}

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

func (*Client_ListBalancesForParty_Call) Return

func (*Client_ListBalancesForParty_Call) Run

func (*Client_ListBalancesForParty_Call) RunAndReturn

type Client_ListBalancesForToken_Call

type Client_ListBalancesForToken_Call struct {
	*mock.Call
}

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

func (*Client_ListBalancesForToken_Call) Return

func (*Client_ListBalancesForToken_Call) Run

func (*Client_ListBalancesForToken_Call) RunAndReturn

type Client_ListPartyEvents_Call

type Client_ListPartyEvents_Call struct {
	*mock.Call
}

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

func (*Client_ListPartyEvents_Call) Return

func (*Client_ListPartyEvents_Call) Run

type Client_ListTokenEvents_Call

type Client_ListTokenEvents_Call struct {
	*mock.Call
}

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

func (*Client_ListTokenEvents_Call) Return

func (*Client_ListTokenEvents_Call) Run

type Client_ListTokens_Call

type Client_ListTokens_Call struct {
	*mock.Call
}

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

func (*Client_ListTokens_Call) Return

func (*Client_ListTokens_Call) Run

func (*Client_ListTokens_Call) RunAndReturn

type Client_TotalSupply_Call

type Client_TotalSupply_Call struct {
	*mock.Call
}

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

func (*Client_TotalSupply_Call) Return

func (*Client_TotalSupply_Call) Run

func (_c *Client_TotalSupply_Call) Run(run func(ctx context.Context, admin string, id string)) *Client_TotalSupply_Call

func (*Client_TotalSupply_Call) RunAndReturn

Jump to

Keyboard shortcuts

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