mocks

package
v2.15.0-beta0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 3 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(ctx context.Context, allowedSenders []common.Address) error

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

func (*ORM) DeleteAllowedSenders

func (_m *ORM) DeleteAllowedSenders(ctx context.Context, blockedSenders []common.Address) error

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

func (*ORM) EXPECT added in v2.15.0

func (_m *ORM) EXPECT() *ORM_Expecter

func (*ORM) GetAllowedSenders

func (_m *ORM) GetAllowedSenders(ctx context.Context, offset uint, limit uint) ([]common.Address, error)

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

func (*ORM) PurgeAllowedSenders added in v2.10.0

func (_m *ORM) PurgeAllowedSenders(ctx context.Context) error

PurgeAllowedSenders provides a mock function with given fields: ctx

type ORM_CreateAllowedSenders_Call added in v2.15.0

type ORM_CreateAllowedSenders_Call struct {
	*mock.Call
}

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

func (*ORM_CreateAllowedSenders_Call) Return added in v2.15.0

func (*ORM_CreateAllowedSenders_Call) Run added in v2.15.0

func (*ORM_CreateAllowedSenders_Call) RunAndReturn added in v2.15.0

type ORM_DeleteAllowedSenders_Call added in v2.15.0

type ORM_DeleteAllowedSenders_Call struct {
	*mock.Call
}

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

func (*ORM_DeleteAllowedSenders_Call) Return added in v2.15.0

func (*ORM_DeleteAllowedSenders_Call) Run added in v2.15.0

func (*ORM_DeleteAllowedSenders_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) CreateAllowedSenders added in v2.15.0

func (_e *ORM_Expecter) CreateAllowedSenders(ctx interface{}, allowedSenders interface{}) *ORM_CreateAllowedSenders_Call

CreateAllowedSenders is a helper method to define mock.On call

  • ctx context.Context
  • allowedSenders []common.Address

func (*ORM_Expecter) DeleteAllowedSenders added in v2.15.0

func (_e *ORM_Expecter) DeleteAllowedSenders(ctx interface{}, blockedSenders interface{}) *ORM_DeleteAllowedSenders_Call

DeleteAllowedSenders is a helper method to define mock.On call

  • ctx context.Context
  • blockedSenders []common.Address

func (*ORM_Expecter) GetAllowedSenders added in v2.15.0

func (_e *ORM_Expecter) GetAllowedSenders(ctx interface{}, offset interface{}, limit interface{}) *ORM_GetAllowedSenders_Call

GetAllowedSenders is a helper method to define mock.On call

  • ctx context.Context
  • offset uint
  • limit uint

func (*ORM_Expecter) PurgeAllowedSenders added in v2.15.0

func (_e *ORM_Expecter) PurgeAllowedSenders(ctx interface{}) *ORM_PurgeAllowedSenders_Call

PurgeAllowedSenders is a helper method to define mock.On call

  • ctx context.Context

type ORM_GetAllowedSenders_Call added in v2.15.0

type ORM_GetAllowedSenders_Call struct {
	*mock.Call
}

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

func (*ORM_GetAllowedSenders_Call) Return added in v2.15.0

func (*ORM_GetAllowedSenders_Call) Run added in v2.15.0

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

func (*ORM_GetAllowedSenders_Call) RunAndReturn added in v2.15.0

type ORM_PurgeAllowedSenders_Call added in v2.15.0

type ORM_PurgeAllowedSenders_Call struct {
	*mock.Call
}

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

func (*ORM_PurgeAllowedSenders_Call) Return added in v2.15.0

func (*ORM_PurgeAllowedSenders_Call) Run added in v2.15.0

func (*ORM_PurgeAllowedSenders_Call) RunAndReturn added in v2.15.0

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) EXPECT added in v2.15.0

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

type OnchainAllowlist_Allow_Call added in v2.15.0

type OnchainAllowlist_Allow_Call struct {
	*mock.Call
}

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

func (*OnchainAllowlist_Allow_Call) Return added in v2.15.0

func (*OnchainAllowlist_Allow_Call) Run added in v2.15.0

func (*OnchainAllowlist_Allow_Call) RunAndReturn added in v2.15.0

type OnchainAllowlist_Close_Call added in v2.15.0

type OnchainAllowlist_Close_Call struct {
	*mock.Call
}

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

func (*OnchainAllowlist_Close_Call) Return added in v2.15.0

func (*OnchainAllowlist_Close_Call) Run added in v2.15.0

func (*OnchainAllowlist_Close_Call) RunAndReturn added in v2.15.0

func (_c *OnchainAllowlist_Close_Call) RunAndReturn(run func() error) *OnchainAllowlist_Close_Call

type OnchainAllowlist_Expecter added in v2.15.0

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

func (*OnchainAllowlist_Expecter) Allow added in v2.15.0

func (_e *OnchainAllowlist_Expecter) Allow(_a0 interface{}) *OnchainAllowlist_Allow_Call

Allow is a helper method to define mock.On call

  • _a0 common.Address

func (*OnchainAllowlist_Expecter) Close added in v2.15.0

Close is a helper method to define mock.On call

func (*OnchainAllowlist_Expecter) Start added in v2.15.0

func (_e *OnchainAllowlist_Expecter) Start(_a0 interface{}) *OnchainAllowlist_Start_Call

Start is a helper method to define mock.On call

  • _a0 context.Context

func (*OnchainAllowlist_Expecter) UpdateFromContract added in v2.15.0

func (_e *OnchainAllowlist_Expecter) UpdateFromContract(ctx interface{}) *OnchainAllowlist_UpdateFromContract_Call

UpdateFromContract is a helper method to define mock.On call

  • ctx context.Context

type OnchainAllowlist_Start_Call added in v2.15.0

type OnchainAllowlist_Start_Call struct {
	*mock.Call
}

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

func (*OnchainAllowlist_Start_Call) Return added in v2.15.0

func (*OnchainAllowlist_Start_Call) Run added in v2.15.0

func (*OnchainAllowlist_Start_Call) RunAndReturn added in v2.15.0

type OnchainAllowlist_UpdateFromContract_Call added in v2.15.0

type OnchainAllowlist_UpdateFromContract_Call struct {
	*mock.Call
}

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

func (*OnchainAllowlist_UpdateFromContract_Call) Return added in v2.15.0

func (*OnchainAllowlist_UpdateFromContract_Call) Run added in v2.15.0

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