mocks

package
v2.15.0-rc0 Latest Latest
Warning

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

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

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

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

func (*ORM) DeleteForwarder

func (_m *ORM) DeleteForwarder(ctx context.Context, id int64, cleanup func(sqlutil.DataSource, int64, common.Address) error) error

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

func (*ORM) EXPECT added in v2.15.0

func (_m *ORM) EXPECT() *ORM_Expecter

func (*ORM) FindForwarders

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

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

func (*ORM) FindForwardersByChain

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

FindForwardersByChain provides a mock function with given fields: ctx, evmChainId

func (*ORM) FindForwardersInListByChain

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

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

type ORM_CreateForwarder_Call added in v2.15.0

type ORM_CreateForwarder_Call struct {
	*mock.Call
}

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

func (*ORM_CreateForwarder_Call) Return added in v2.15.0

func (*ORM_CreateForwarder_Call) Run added in v2.15.0

func (_c *ORM_CreateForwarder_Call) Run(run func(ctx context.Context, addr common.Address, evmChainId big.Big)) *ORM_CreateForwarder_Call

func (*ORM_CreateForwarder_Call) RunAndReturn added in v2.15.0

type ORM_DeleteForwarder_Call added in v2.15.0

type ORM_DeleteForwarder_Call struct {
	*mock.Call
}

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

func (*ORM_DeleteForwarder_Call) Return added in v2.15.0

func (*ORM_DeleteForwarder_Call) Run added in v2.15.0

func (*ORM_DeleteForwarder_Call) RunAndReturn added in v2.15.0

type ORM_Expecter added in v2.15.0

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

func (*ORM_Expecter) CreateForwarder added in v2.15.0

func (_e *ORM_Expecter) CreateForwarder(ctx interface{}, addr interface{}, evmChainId interface{}) *ORM_CreateForwarder_Call

CreateForwarder is a helper method to define mock.On call

  • ctx context.Context
  • addr common.Address
  • evmChainId big.Big

func (*ORM_Expecter) DeleteForwarder added in v2.15.0

func (_e *ORM_Expecter) DeleteForwarder(ctx interface{}, id interface{}, cleanup interface{}) *ORM_DeleteForwarder_Call

DeleteForwarder is a helper method to define mock.On call

  • ctx context.Context
  • id int64
  • cleanup func(sqlutil.DataSource , int64 , common.Address) error

func (*ORM_Expecter) FindForwarders added in v2.15.0

func (_e *ORM_Expecter) FindForwarders(ctx interface{}, offset interface{}, limit interface{}) *ORM_FindForwarders_Call

FindForwarders is a helper method to define mock.On call

  • ctx context.Context
  • offset int
  • limit int

func (*ORM_Expecter) FindForwardersByChain added in v2.15.0

func (_e *ORM_Expecter) FindForwardersByChain(ctx interface{}, evmChainId interface{}) *ORM_FindForwardersByChain_Call

FindForwardersByChain is a helper method to define mock.On call

  • ctx context.Context
  • evmChainId big.Big

func (*ORM_Expecter) FindForwardersInListByChain added in v2.15.0

func (_e *ORM_Expecter) FindForwardersInListByChain(ctx interface{}, evmChainId interface{}, addrs interface{}) *ORM_FindForwardersInListByChain_Call

FindForwardersInListByChain is a helper method to define mock.On call

  • ctx context.Context
  • evmChainId big.Big
  • addrs []common.Address

type ORM_FindForwardersByChain_Call added in v2.15.0

type ORM_FindForwardersByChain_Call struct {
	*mock.Call
}

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

func (*ORM_FindForwardersByChain_Call) Return added in v2.15.0

func (*ORM_FindForwardersByChain_Call) Run added in v2.15.0

func (*ORM_FindForwardersByChain_Call) RunAndReturn added in v2.15.0

type ORM_FindForwardersInListByChain_Call added in v2.15.0

type ORM_FindForwardersInListByChain_Call struct {
	*mock.Call
}

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

func (*ORM_FindForwardersInListByChain_Call) Return added in v2.15.0

func (*ORM_FindForwardersInListByChain_Call) Run added in v2.15.0

func (*ORM_FindForwardersInListByChain_Call) RunAndReturn added in v2.15.0

type ORM_FindForwarders_Call added in v2.15.0

type ORM_FindForwarders_Call struct {
	*mock.Call
}

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

func (*ORM_FindForwarders_Call) Return added in v2.15.0

func (*ORM_FindForwarders_Call) Run added in v2.15.0

func (_c *ORM_FindForwarders_Call) Run(run func(ctx context.Context, offset int, limit int)) *ORM_FindForwarders_Call

func (*ORM_FindForwarders_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