Documentation
¶
Index ¶
- type Service
- type Service_Expecter
- type Service_GetTransfer_Call
- func (_c *Service_GetTransfer_Call) Return(_a0 *relayer.Transfer, _a1 error) *Service_GetTransfer_Call
- func (_c *Service_GetTransfer_Call) Run(run func(ctx context.Context, id string)) *Service_GetTransfer_Call
- func (_c *Service_GetTransfer_Call) RunAndReturn(run func(context.Context, string) (*relayer.Transfer, error)) *Service_GetTransfer_Call
- type Service_ListTransfers_Call
- func (_c *Service_ListTransfers_Call) Return(_a0 []*relayer.Transfer, _a1 error) *Service_ListTransfers_Call
- func (_c *Service_ListTransfers_Call) Run(run func(ctx context.Context, limit int)) *Service_ListTransfers_Call
- func (_c *Service_ListTransfers_Call) RunAndReturn(run func(context.Context, int) ([]*relayer.Transfer, error)) *Service_ListTransfers_Call
- type Store
- type Store_Expecter
- type Store_GetTransfer_Call
- func (_c *Store_GetTransfer_Call) Return(_a0 *relayer.Transfer, _a1 error) *Store_GetTransfer_Call
- func (_c *Store_GetTransfer_Call) Run(run func(ctx context.Context, id string)) *Store_GetTransfer_Call
- func (_c *Store_GetTransfer_Call) RunAndReturn(run func(context.Context, string) (*relayer.Transfer, error)) *Store_GetTransfer_Call
- type Store_ListTransfers_Call
- func (_c *Store_ListTransfers_Call) Return(_a0 []*relayer.Transfer, _a1 error) *Store_ListTransfers_Call
- func (_c *Store_ListTransfers_Call) Run(run func(ctx context.Context, limit int)) *Store_ListTransfers_Call
- func (_c *Store_ListTransfers_Call) RunAndReturn(run func(context.Context, int) ([]*relayer.Transfer, error)) *Store_ListTransfers_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
Service is an autogenerated mock type for the Service type
func NewService ¶
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 ¶
GetTransfer provides a mock function with given fields: ctx, id
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 ¶
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 (_c *Service_GetTransfer_Call) Return(_a0 *relayer.Transfer, _a1 error) *Service_GetTransfer_Call
func (*Service_GetTransfer_Call) Run ¶
func (_c *Service_GetTransfer_Call) Run(run func(ctx context.Context, id string)) *Service_GetTransfer_Call
func (*Service_GetTransfer_Call) RunAndReturn ¶
func (_c *Service_GetTransfer_Call) RunAndReturn(run func(context.Context, string) (*relayer.Transfer, error)) *Service_GetTransfer_Call
type Service_ListTransfers_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 (_c *Service_ListTransfers_Call) Return(_a0 []*relayer.Transfer, _a1 error) *Service_ListTransfers_Call
func (*Service_ListTransfers_Call) Run ¶
func (_c *Service_ListTransfers_Call) Run(run func(ctx context.Context, limit int)) *Service_ListTransfers_Call
func (*Service_ListTransfers_Call) RunAndReturn ¶
func (_c *Service_ListTransfers_Call) RunAndReturn(run func(context.Context, int) ([]*relayer.Transfer, error)) *Service_ListTransfers_Call
type Store ¶
Store is an autogenerated mock type for the Store type
func NewStore ¶
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 ¶
GetTransfer provides a mock function with given fields: ctx, id
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 ¶
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 (_c *Store_GetTransfer_Call) Return(_a0 *relayer.Transfer, _a1 error) *Store_GetTransfer_Call
func (*Store_GetTransfer_Call) Run ¶
func (_c *Store_GetTransfer_Call) Run(run func(ctx context.Context, id string)) *Store_GetTransfer_Call
func (*Store_GetTransfer_Call) RunAndReturn ¶
func (_c *Store_GetTransfer_Call) RunAndReturn(run func(context.Context, string) (*relayer.Transfer, error)) *Store_GetTransfer_Call
type Store_ListTransfers_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 (_c *Store_ListTransfers_Call) Return(_a0 []*relayer.Transfer, _a1 error) *Store_ListTransfers_Call
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 ¶
func (_c *Store_ListTransfers_Call) RunAndReturn(run func(context.Context, int) ([]*relayer.Transfer, error)) *Store_ListTransfers_Call