mocks

package
v0.7.0 Latest Latest
Warning

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

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

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

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

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

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

func (_e *Service_Expecter) GetAllPendingOffers(ctx interface{}, p interface{}) *Service_GetAllPendingOffers_Call

GetAllPendingOffers is a helper method to define mock.On call

  • ctx context.Context
  • p indexer.Pagination

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

func (_e *Service_Expecter) GetPendingOffersForParty(ctx interface{}, partyID interface{}, p interface{}) *Service_GetPendingOffersForParty_Call

GetPendingOffersForParty is a helper method to define mock.On call

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

type Service_GetAllPendingOffers_Call struct {
	*mock.Call
}

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

func (*Service_GetAllPendingOffers_Call) Return

func (*Service_GetAllPendingOffers_Call) Run

func (*Service_GetAllPendingOffers_Call) RunAndReturn

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_GetPendingOffersForParty_Call

type Service_GetPendingOffersForParty_Call struct {
	*mock.Call
}

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

func (*Service_GetPendingOffersForParty_Call) Return

func (*Service_GetPendingOffersForParty_Call) Run

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

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

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

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

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

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

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

func (_e *Store_Expecter) ListAllPendingOffers(ctx interface{}, p interface{}) *Store_ListAllPendingOffers_Call

ListAllPendingOffers is a helper method to define mock.On call

  • ctx context.Context
  • p indexer.Pagination

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

func (_e *Store_Expecter) ListPendingOffersForParty(ctx interface{}, partyID interface{}, p interface{}) *Store_ListPendingOffersForParty_Call

ListPendingOffersForParty is a helper method to define mock.On call

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

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_ListAllPendingOffers_Call

type Store_ListAllPendingOffers_Call struct {
	*mock.Call
}

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

func (*Store_ListAllPendingOffers_Call) Return

func (*Store_ListAllPendingOffers_Call) Run

func (*Store_ListAllPendingOffers_Call) RunAndReturn

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_ListPendingOffersForParty_Call

type Store_ListPendingOffersForParty_Call struct {
	*mock.Call
}

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

func (*Store_ListPendingOffersForParty_Call) Return

func (*Store_ListPendingOffersForParty_Call) Run

func (*Store_ListPendingOffersForParty_Call) RunAndReturn

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

Jump to

Keyboard shortcuts

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