mocks

package
v2.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ORM

type ORM struct {
	mock.Mock
}

ORM is an autogenerated mock type for the ORM type

func NewORM

func NewORM(t interface {
	mock.TestingT
	Cleanup(func())
}) *ORM

NewORM creates a new instance of ORM. 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 (*ORM) EXPECT added in v2.15.0

func (_m *ORM) EXPECT() *ORM_Expecter

func (*ORM) GetSubscriptions

func (_m *ORM) GetSubscriptions(ctx context.Context, offset uint, limit uint) ([]subscriptions.StoredSubscription, error)

GetSubscriptions provides a mock function with given fields: ctx, offset, limit

func (*ORM) UpsertSubscription

func (_m *ORM) UpsertSubscription(ctx context.Context, subscription subscriptions.StoredSubscription) error

UpsertSubscription provides a mock function with given fields: ctx, subscription

type ORM_Expecter added in v2.15.0

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

func (*ORM_Expecter) GetSubscriptions added in v2.15.0

func (_e *ORM_Expecter) GetSubscriptions(ctx interface{}, offset interface{}, limit interface{}) *ORM_GetSubscriptions_Call

GetSubscriptions is a helper method to define mock.On call

  • ctx context.Context
  • offset uint
  • limit uint

func (*ORM_Expecter) UpsertSubscription added in v2.15.0

func (_e *ORM_Expecter) UpsertSubscription(ctx interface{}, subscription interface{}) *ORM_UpsertSubscription_Call

UpsertSubscription is a helper method to define mock.On call

  • ctx context.Context
  • subscription subscriptions.StoredSubscription

type ORM_GetSubscriptions_Call added in v2.15.0

type ORM_GetSubscriptions_Call struct {
	*mock.Call
}

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

func (*ORM_GetSubscriptions_Call) Return added in v2.15.0

func (*ORM_GetSubscriptions_Call) Run added in v2.15.0

func (_c *ORM_GetSubscriptions_Call) Run(run func(ctx context.Context, offset uint, limit uint)) *ORM_GetSubscriptions_Call

func (*ORM_GetSubscriptions_Call) RunAndReturn added in v2.15.0

type ORM_UpsertSubscription_Call added in v2.15.0

type ORM_UpsertSubscription_Call struct {
	*mock.Call
}

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

func (*ORM_UpsertSubscription_Call) Return added in v2.15.0

func (*ORM_UpsertSubscription_Call) Run added in v2.15.0

func (*ORM_UpsertSubscription_Call) RunAndReturn added in v2.15.0

type OnchainSubscriptions

type OnchainSubscriptions struct {
	mock.Mock
}

OnchainSubscriptions is an autogenerated mock type for the OnchainSubscriptions type

func NewOnchainSubscriptions

func NewOnchainSubscriptions(t interface {
	mock.TestingT
	Cleanup(func())
}) *OnchainSubscriptions

NewOnchainSubscriptions creates a new instance of OnchainSubscriptions. 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 (*OnchainSubscriptions) Close

func (_m *OnchainSubscriptions) Close() error

Close provides a mock function with given fields:

func (*OnchainSubscriptions) EXPECT added in v2.15.0

func (*OnchainSubscriptions) GetMaxUserBalance

func (_m *OnchainSubscriptions) GetMaxUserBalance(_a0 common.Address) (*big.Int, error)

GetMaxUserBalance provides a mock function with given fields: _a0

func (*OnchainSubscriptions) Start

func (_m *OnchainSubscriptions) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

type OnchainSubscriptions_Close_Call added in v2.15.0

type OnchainSubscriptions_Close_Call struct {
	*mock.Call
}

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

func (*OnchainSubscriptions_Close_Call) Return added in v2.15.0

func (*OnchainSubscriptions_Close_Call) Run added in v2.15.0

func (*OnchainSubscriptions_Close_Call) RunAndReturn added in v2.15.0

type OnchainSubscriptions_Expecter added in v2.15.0

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

func (*OnchainSubscriptions_Expecter) Close added in v2.15.0

Close is a helper method to define mock.On call

func (*OnchainSubscriptions_Expecter) GetMaxUserBalance added in v2.15.0

func (_e *OnchainSubscriptions_Expecter) GetMaxUserBalance(_a0 interface{}) *OnchainSubscriptions_GetMaxUserBalance_Call

GetMaxUserBalance is a helper method to define mock.On call

  • _a0 common.Address

func (*OnchainSubscriptions_Expecter) Start added in v2.15.0

Start is a helper method to define mock.On call

  • _a0 context.Context

type OnchainSubscriptions_GetMaxUserBalance_Call added in v2.15.0

type OnchainSubscriptions_GetMaxUserBalance_Call struct {
	*mock.Call
}

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

func (*OnchainSubscriptions_GetMaxUserBalance_Call) Return added in v2.15.0

func (*OnchainSubscriptions_GetMaxUserBalance_Call) Run added in v2.15.0

func (*OnchainSubscriptions_GetMaxUserBalance_Call) RunAndReturn added in v2.15.0

type OnchainSubscriptions_Start_Call added in v2.15.0

type OnchainSubscriptions_Start_Call struct {
	*mock.Call
}

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

func (*OnchainSubscriptions_Start_Call) Return added in v2.15.0

func (*OnchainSubscriptions_Start_Call) Run added in v2.15.0

func (*OnchainSubscriptions_Start_Call) RunAndReturn added in v2.15.0

Jump to

Keyboard shortcuts

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