mocks

package
v2.9.0-beta0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 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) CreateForwarder

func (_m *ORM) CreateForwarder(addr common.Address, evmChainId big.Big) (forwarders.Forwarder, error)

CreateForwarder provides a mock function with given fields: addr, evmChainId

func (*ORM) DeleteForwarder

func (_m *ORM) DeleteForwarder(id int64, cleanup func(pg.Queryer, int64, common.Address) error) error

DeleteForwarder provides a mock function with given fields: id, cleanup

func (*ORM) FindForwarders

func (_m *ORM) FindForwarders(offset int, limit int) ([]forwarders.Forwarder, int, error)

FindForwarders provides a mock function with given fields: offset, limit

func (*ORM) FindForwardersByChain

func (_m *ORM) FindForwardersByChain(evmChainId big.Big) ([]forwarders.Forwarder, error)

FindForwardersByChain provides a mock function with given fields: evmChainId

func (*ORM) FindForwardersInListByChain

func (_m *ORM) FindForwardersInListByChain(evmChainId big.Big, addrs []common.Address) ([]forwarders.Forwarder, error)

FindForwardersInListByChain provides a mock function with given fields: evmChainId, addrs

Jump to

Keyboard shortcuts

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