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 Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService

func NewService(t interface {
	mock.TestingT
	Cleanup(func())
}) *Service

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

func (_m *Service) EXPECT() *Service_Expecter

func (*Service) GetBalance

func (_m *Service) 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 (*Service) GetEvent

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

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

func (*Service) GetPendingTransfers added in v0.8.0

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

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

func (*Service) GetToken

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

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

func (*Service) GetTransfer added in v0.8.0

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

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

func (*Service) GetTransfers added in v0.8.0

func (_m *Service) 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 (*Service) ListBalancesForParty

func (_m *Service) 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 (*Service) ListBalancesForToken

func (_m *Service) 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 (*Service) ListPartyEvents

func (_m *Service) 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 (*Service) ListTokenEvents

func (_m *Service) 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 (*Service) ListTokens

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

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

func (*Service) TotalSupply

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

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

type Service_Expecter

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

func (*Service_Expecter) GetBalance

func (_e *Service_Expecter) GetBalance(ctx interface{}, partyID interface{}, admin interface{}, id interface{}) *Service_GetBalance_Call

GetBalance is a helper method to define mock.On call

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

func (*Service_Expecter) GetEvent

func (_e *Service_Expecter) GetEvent(ctx interface{}, contractID interface{}) *Service_GetEvent_Call

GetEvent is a helper method to define mock.On call

  • ctx context.Context
  • contractID string

func (*Service_Expecter) GetPendingTransfers added in v0.8.0

func (_e *Service_Expecter) GetPendingTransfers(ctx interface{}, p interface{}) *Service_GetPendingTransfers_Call

GetPendingTransfers is a helper method to define mock.On call

  • ctx context.Context
  • p indexer.Pagination

func (*Service_Expecter) GetToken

func (_e *Service_Expecter) GetToken(ctx interface{}, admin interface{}, id interface{}) *Service_GetToken_Call

GetToken is a helper method to define mock.On call

  • ctx context.Context
  • admin string
  • id string

func (*Service_Expecter) GetTransfer added in v0.8.0

func (_e *Service_Expecter) GetTransfer(ctx interface{}, contractID interface{}) *Service_GetTransfer_Call

GetTransfer is a helper method to define mock.On call

  • ctx context.Context
  • contractID string

func (*Service_Expecter) GetTransfers added in v0.8.0

func (_e *Service_Expecter) GetTransfers(ctx interface{}, partyID interface{}, query interface{}, p interface{}) *Service_GetTransfers_Call

GetTransfers is a helper method to define mock.On call

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

func (*Service_Expecter) ListBalancesForParty

func (_e *Service_Expecter) ListBalancesForParty(ctx interface{}, partyID interface{}, p interface{}) *Service_ListBalancesForParty_Call

ListBalancesForParty is a helper method to define mock.On call

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

func (*Service_Expecter) ListBalancesForToken

func (_e *Service_Expecter) ListBalancesForToken(ctx interface{}, admin interface{}, id interface{}, p interface{}) *Service_ListBalancesForToken_Call

ListBalancesForToken is a helper method to define mock.On call

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

func (*Service_Expecter) ListPartyEvents

func (_e *Service_Expecter) ListPartyEvents(ctx interface{}, partyID interface{}, f interface{}, p interface{}) *Service_ListPartyEvents_Call

ListPartyEvents is a helper method to define mock.On call

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

func (*Service_Expecter) ListTokenEvents

func (_e *Service_Expecter) ListTokenEvents(ctx interface{}, admin interface{}, id interface{}, f interface{}, p interface{}) *Service_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 (*Service_Expecter) ListTokens

func (_e *Service_Expecter) ListTokens(ctx interface{}, p interface{}) *Service_ListTokens_Call

ListTokens is a helper method to define mock.On call

  • ctx context.Context
  • p indexer.Pagination

func (*Service_Expecter) TotalSupply

func (_e *Service_Expecter) TotalSupply(ctx interface{}, admin interface{}, id interface{}) *Service_TotalSupply_Call

TotalSupply is a helper method to define mock.On call

  • ctx context.Context
  • admin string
  • id string

type Service_GetBalance_Call

type Service_GetBalance_Call struct {
	*mock.Call
}

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

func (*Service_GetBalance_Call) Return

func (*Service_GetBalance_Call) Run

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

func (*Service_GetBalance_Call) RunAndReturn

type Service_GetEvent_Call

type Service_GetEvent_Call struct {
	*mock.Call
}

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

func (*Service_GetEvent_Call) Return

func (*Service_GetEvent_Call) Run

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

func (*Service_GetEvent_Call) RunAndReturn

type Service_GetPendingTransfers_Call added in v0.8.0

type Service_GetPendingTransfers_Call struct {
	*mock.Call
}

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

func (*Service_GetPendingTransfers_Call) Return added in v0.8.0

func (*Service_GetPendingTransfers_Call) Run added in v0.8.0

func (*Service_GetPendingTransfers_Call) RunAndReturn added in v0.8.0

type Service_GetToken_Call

type Service_GetToken_Call struct {
	*mock.Call
}

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

func (*Service_GetToken_Call) Return

func (*Service_GetToken_Call) Run

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

func (*Service_GetToken_Call) RunAndReturn

type Service_GetTransfer_Call added in v0.8.0

type Service_GetTransfer_Call struct {
	*mock.Call
}

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

func (*Service_GetTransfer_Call) Return added in v0.8.0

func (*Service_GetTransfer_Call) Run added in v0.8.0

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

func (*Service_GetTransfer_Call) RunAndReturn added in v0.8.0

type Service_GetTransfers_Call added in v0.8.0

type Service_GetTransfers_Call struct {
	*mock.Call
}

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

func (*Service_GetTransfers_Call) Return added in v0.8.0

func (*Service_GetTransfers_Call) Run added in v0.8.0

func (*Service_GetTransfers_Call) RunAndReturn added in v0.8.0

type Service_ListBalancesForParty_Call

type Service_ListBalancesForParty_Call struct {
	*mock.Call
}

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

func (*Service_ListBalancesForParty_Call) Return

func (*Service_ListBalancesForParty_Call) Run

func (*Service_ListBalancesForParty_Call) RunAndReturn

type Service_ListBalancesForToken_Call

type Service_ListBalancesForToken_Call struct {
	*mock.Call
}

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

func (*Service_ListBalancesForToken_Call) Return

func (*Service_ListBalancesForToken_Call) Run

func (*Service_ListBalancesForToken_Call) RunAndReturn

type Service_ListPartyEvents_Call

type Service_ListPartyEvents_Call struct {
	*mock.Call
}

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

func (*Service_ListPartyEvents_Call) Return

func (*Service_ListPartyEvents_Call) Run

type Service_ListTokenEvents_Call

type Service_ListTokenEvents_Call struct {
	*mock.Call
}

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

func (*Service_ListTokenEvents_Call) Return

func (*Service_ListTokenEvents_Call) Run

type Service_ListTokens_Call

type Service_ListTokens_Call struct {
	*mock.Call
}

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

func (*Service_ListTokens_Call) Return

func (*Service_ListTokens_Call) Run

func (*Service_ListTokens_Call) RunAndReturn

type Service_TotalSupply_Call

type Service_TotalSupply_Call struct {
	*mock.Call
}

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

func (*Service_TotalSupply_Call) Return

func (*Service_TotalSupply_Call) Run

func (*Service_TotalSupply_Call) RunAndReturn

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func NewStore

func NewStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *Store

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

func (_m *Store) EXPECT() *Store_Expecter

func (*Store) GetBalance

func (_m *Store) 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 (*Store) GetEvent

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

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

func (*Store) GetToken

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

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

func (*Store) GetTransfer added in v0.8.0

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

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

func (*Store) ListBalancesForParty

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

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

func (*Store) ListBalancesForToken

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

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

func (*Store) ListEvents

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

func (*Store) ListPendingTransfers added in v0.8.0

func (_m *Store) ListPendingTransfers(ctx context.Context, p indexer.Pagination) ([]indexer.Transfer, int64, error)

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

func (*Store) ListTokens

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

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

func (*Store) ListTransfers added in v0.8.0

func (_m *Store) ListTransfers(ctx context.Context, partyID string, query indexer.TransferQuery, p indexer.Pagination) ([]indexer.Transfer, int64, error)

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

type Store_Expecter

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

func (*Store_Expecter) GetBalance

func (_e *Store_Expecter) GetBalance(ctx interface{}, partyID interface{}, admin interface{}, id interface{}) *Store_GetBalance_Call

GetBalance is a helper method to define mock.On call

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

func (*Store_Expecter) GetEvent

func (_e *Store_Expecter) GetEvent(ctx interface{}, contractID interface{}) *Store_GetEvent_Call

GetEvent is a helper method to define mock.On call

  • ctx context.Context
  • contractID string

func (*Store_Expecter) GetToken

func (_e *Store_Expecter) GetToken(ctx interface{}, admin interface{}, id interface{}) *Store_GetToken_Call

GetToken is a helper method to define mock.On call

  • ctx context.Context
  • admin string
  • id string

func (*Store_Expecter) GetTransfer added in v0.8.0

func (_e *Store_Expecter) GetTransfer(ctx interface{}, contractID interface{}) *Store_GetTransfer_Call

GetTransfer is a helper method to define mock.On call

  • ctx context.Context
  • contractID string

func (*Store_Expecter) ListBalancesForParty

func (_e *Store_Expecter) ListBalancesForParty(ctx interface{}, partyID interface{}, p interface{}) *Store_ListBalancesForParty_Call

ListBalancesForParty is a helper method to define mock.On call

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

func (*Store_Expecter) ListBalancesForToken

func (_e *Store_Expecter) ListBalancesForToken(ctx interface{}, admin interface{}, id interface{}, p interface{}) *Store_ListBalancesForToken_Call

ListBalancesForToken is a helper method to define mock.On call

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

func (*Store_Expecter) ListEvents

func (_e *Store_Expecter) ListEvents(ctx interface{}, f interface{}, p interface{}) *Store_ListEvents_Call

ListEvents is a helper method to define mock.On call

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

func (*Store_Expecter) ListPendingTransfers added in v0.8.0

func (_e *Store_Expecter) ListPendingTransfers(ctx interface{}, p interface{}) *Store_ListPendingTransfers_Call

ListPendingTransfers is a helper method to define mock.On call

  • ctx context.Context
  • p indexer.Pagination

func (*Store_Expecter) ListTokens

func (_e *Store_Expecter) ListTokens(ctx interface{}, p interface{}) *Store_ListTokens_Call

ListTokens is a helper method to define mock.On call

  • ctx context.Context
  • p indexer.Pagination

func (*Store_Expecter) ListTransfers added in v0.8.0

func (_e *Store_Expecter) ListTransfers(ctx interface{}, partyID interface{}, query interface{}, p interface{}) *Store_ListTransfers_Call

ListTransfers is a helper method to define mock.On call

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

type Store_GetBalance_Call

type Store_GetBalance_Call struct {
	*mock.Call
}

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

func (*Store_GetBalance_Call) Return

func (*Store_GetBalance_Call) Run

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

func (*Store_GetBalance_Call) RunAndReturn

type Store_GetEvent_Call

type Store_GetEvent_Call struct {
	*mock.Call
}

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

func (*Store_GetEvent_Call) Return

func (*Store_GetEvent_Call) Run

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

func (*Store_GetEvent_Call) RunAndReturn

type Store_GetToken_Call

type Store_GetToken_Call struct {
	*mock.Call
}

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

func (*Store_GetToken_Call) Return

func (*Store_GetToken_Call) Run

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

func (*Store_GetToken_Call) RunAndReturn

type Store_GetTransfer_Call added in v0.8.0

type Store_GetTransfer_Call struct {
	*mock.Call
}

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

func (*Store_GetTransfer_Call) Return added in v0.8.0

func (*Store_GetTransfer_Call) Run added in v0.8.0

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

func (*Store_GetTransfer_Call) RunAndReturn added in v0.8.0

type Store_ListBalancesForParty_Call

type Store_ListBalancesForParty_Call struct {
	*mock.Call
}

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

func (*Store_ListBalancesForParty_Call) Return

func (*Store_ListBalancesForParty_Call) Run

func (*Store_ListBalancesForParty_Call) RunAndReturn

type Store_ListBalancesForToken_Call

type Store_ListBalancesForToken_Call struct {
	*mock.Call
}

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

func (*Store_ListBalancesForToken_Call) Return

func (*Store_ListBalancesForToken_Call) Run

func (*Store_ListBalancesForToken_Call) RunAndReturn

type Store_ListEvents_Call

type Store_ListEvents_Call struct {
	*mock.Call
}

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

func (*Store_ListEvents_Call) Return

func (*Store_ListEvents_Call) Run

func (*Store_ListEvents_Call) RunAndReturn

type Store_ListPendingTransfers_Call added in v0.8.0

type Store_ListPendingTransfers_Call struct {
	*mock.Call
}

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

func (*Store_ListPendingTransfers_Call) Return added in v0.8.0

func (*Store_ListPendingTransfers_Call) Run added in v0.8.0

func (*Store_ListPendingTransfers_Call) RunAndReturn added in v0.8.0

type Store_ListTokens_Call

type Store_ListTokens_Call struct {
	*mock.Call
}

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

func (*Store_ListTokens_Call) Return

func (_c *Store_ListTokens_Call) Return(_a0 []*indexer.Token, _a1 int64, _a2 error) *Store_ListTokens_Call

func (*Store_ListTokens_Call) Run

func (*Store_ListTokens_Call) RunAndReturn

type Store_ListTransfers_Call added in v0.8.0

type Store_ListTransfers_Call struct {
	*mock.Call
}

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

func (*Store_ListTransfers_Call) Return added in v0.8.0

func (*Store_ListTransfers_Call) Run added in v0.8.0

func (*Store_ListTransfers_Call) RunAndReturn added in v0.8.0

Jump to

Keyboard shortcuts

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