mocks

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 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) GetAllPendingOffers

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

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

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

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

GetPendingOffersForParty provides a mock function with given fields: ctx, partyID, 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) 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) GetAllPendingOffers

func (_e *Client_Expecter) GetAllPendingOffers(ctx interface{}, p interface{}) *Client_GetAllPendingOffers_Call

GetAllPendingOffers is a helper method to define mock.On call

  • ctx context.Context
  • p indexer.Pagination

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

func (_e *Client_Expecter) GetPendingOffersForParty(ctx interface{}, partyID interface{}, p interface{}) *Client_GetPendingOffersForParty_Call

GetPendingOffersForParty is a helper method to define mock.On call

  • ctx context.Context
  • partyID string
  • 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) 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_GetAllPendingOffers_Call

type Client_GetAllPendingOffers_Call struct {
	*mock.Call
}

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

func (*Client_GetAllPendingOffers_Call) Return

func (*Client_GetAllPendingOffers_Call) Run

func (*Client_GetAllPendingOffers_Call) RunAndReturn

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_GetPendingOffersForParty_Call

type Client_GetPendingOffersForParty_Call struct {
	*mock.Call
}

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

func (*Client_GetPendingOffersForParty_Call) Return

func (*Client_GetPendingOffersForParty_Call) Run

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_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