mocks

package
v2.9.1-automation-2024... Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 6 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) GetSubscriptions

func (_m *ORM) GetSubscriptions(offset uint, limit uint, qopts ...pg.QOpt) ([]subscriptions.StoredSubscription, error)

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

func (*ORM) UpsertSubscription

func (_m *ORM) UpsertSubscription(subscription subscriptions.StoredSubscription, qopts ...pg.QOpt) error

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

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

Jump to

Keyboard shortcuts

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