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: 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) GetTransfer

func (_m *Service) GetTransfer(ctx context.Context, id string) (*relayer.Transfer, error)

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

func (*Service) ListTransfers

func (_m *Service) ListTransfers(ctx context.Context, limit int) ([]*relayer.Transfer, error)

ListTransfers provides a mock function with given fields: ctx, limit

type Service_Expecter

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

func (*Service_Expecter) GetTransfer

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

GetTransfer is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*Service_Expecter) ListTransfers

func (_e *Service_Expecter) ListTransfers(ctx interface{}, limit interface{}) *Service_ListTransfers_Call

ListTransfers is a helper method to define mock.On call

  • ctx context.Context
  • limit int

type Service_GetTransfer_Call

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

func (*Service_GetTransfer_Call) Run

func (*Service_GetTransfer_Call) RunAndReturn

type Service_ListTransfers_Call

type Service_ListTransfers_Call struct {
	*mock.Call
}

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

func (*Service_ListTransfers_Call) Return

func (*Service_ListTransfers_Call) Run

func (*Service_ListTransfers_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) GetTransfer

func (_m *Store) GetTransfer(ctx context.Context, id string) (*relayer.Transfer, error)

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

func (*Store) ListTransfers

func (_m *Store) ListTransfers(ctx context.Context, limit int) ([]*relayer.Transfer, error)

ListTransfers provides a mock function with given fields: ctx, limit

type Store_Expecter

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

func (*Store_Expecter) GetTransfer

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

GetTransfer is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*Store_Expecter) ListTransfers

func (_e *Store_Expecter) ListTransfers(ctx interface{}, limit interface{}) *Store_ListTransfers_Call

ListTransfers is a helper method to define mock.On call

  • ctx context.Context
  • limit int

type Store_GetTransfer_Call

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

func (*Store_GetTransfer_Call) Run

func (*Store_GetTransfer_Call) RunAndReturn

type Store_ListTransfers_Call

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

func (*Store_ListTransfers_Call) Run

func (_c *Store_ListTransfers_Call) Run(run func(ctx context.Context, limit int)) *Store_ListTransfers_Call

func (*Store_ListTransfers_Call) RunAndReturn

Jump to

Keyboard shortcuts

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