mocks

package
v2.11.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 4 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) CreateAllowedSenders

func (_m *ORM) CreateAllowedSenders(allowedSenders []common.Address, qopts ...pg.QOpt) error

CreateAllowedSenders provides a mock function with given fields: allowedSenders, qopts

func (*ORM) DeleteAllowedSenders

func (_m *ORM) DeleteAllowedSenders(blockedSenders []common.Address, qopts ...pg.QOpt) error

DeleteAllowedSenders provides a mock function with given fields: blockedSenders, qopts

func (*ORM) GetAllowedSenders

func (_m *ORM) GetAllowedSenders(offset uint, limit uint, qopts ...pg.QOpt) ([]common.Address, error)

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

func (*ORM) PurgeAllowedSenders added in v2.10.0

func (_m *ORM) PurgeAllowedSenders(qopts ...pg.QOpt) error

PurgeAllowedSenders provides a mock function with given fields: qopts

type OnchainAllowlist

type OnchainAllowlist struct {
	mock.Mock
}

OnchainAllowlist is an autogenerated mock type for the OnchainAllowlist type

func NewOnchainAllowlist

func NewOnchainAllowlist(t interface {
	mock.TestingT
	Cleanup(func())
}) *OnchainAllowlist

NewOnchainAllowlist creates a new instance of OnchainAllowlist. 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 (*OnchainAllowlist) Allow

func (_m *OnchainAllowlist) Allow(_a0 common.Address) bool

Allow provides a mock function with given fields: _a0

func (*OnchainAllowlist) Close

func (_m *OnchainAllowlist) Close() error

Close provides a mock function with given fields:

func (*OnchainAllowlist) Start

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

Start provides a mock function with given fields: _a0

func (*OnchainAllowlist) UpdateFromContract

func (_m *OnchainAllowlist) UpdateFromContract(ctx context.Context) error

UpdateFromContract provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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