mocks

package
v2.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func (_m *ORM) ClearGasPricesByDestChain(ctx context.Context, destChainSelector uint64, expireSec int) error

ClearGasPricesByDestChain provides a mock function with given fields: ctx, destChainSelector, expireSec

func (*ORM) ClearTokenPricesByDestChain

func (_m *ORM) ClearTokenPricesByDestChain(ctx context.Context, destChainSelector uint64, expireSec int) error

ClearTokenPricesByDestChain provides a mock function with given fields: ctx, destChainSelector, expireSec

func (*ORM) EXPECT added in v2.13.1

func (_m *ORM) EXPECT() *ORM_Expecter

func (*ORM) GetGasPricesByDestChain

func (_m *ORM) GetGasPricesByDestChain(ctx context.Context, destChainSelector uint64) ([]ccip.GasPrice, error)

GetGasPricesByDestChain provides a mock function with given fields: ctx, destChainSelector

func (*ORM) GetTokenPricesByDestChain

func (_m *ORM) GetTokenPricesByDestChain(ctx context.Context, destChainSelector uint64) ([]ccip.TokenPrice, error)

GetTokenPricesByDestChain provides a mock function with given fields: ctx, destChainSelector

func (*ORM) InsertGasPricesForDestChain

func (_m *ORM) InsertGasPricesForDestChain(ctx context.Context, destChainSelector uint64, jobId int32, gasPrices []ccip.GasPriceUpdate) error

InsertGasPricesForDestChain provides a mock function with given fields: ctx, destChainSelector, jobId, gasPrices

func (*ORM) InsertTokenPricesForDestChain

func (_m *ORM) InsertTokenPricesForDestChain(ctx context.Context, destChainSelector uint64, jobId int32, tokenPrices []ccip.TokenPriceUpdate) error

InsertTokenPricesForDestChain provides a mock function with given fields: ctx, destChainSelector, jobId, tokenPrices

type ORM_ClearGasPricesByDestChain_Call added in v2.13.1

type ORM_ClearGasPricesByDestChain_Call struct {
	*mock.Call
}

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

func (*ORM_ClearGasPricesByDestChain_Call) Return added in v2.13.1

func (*ORM_ClearGasPricesByDestChain_Call) Run added in v2.13.1

func (_c *ORM_ClearGasPricesByDestChain_Call) Run(run func(ctx context.Context, destChainSelector uint64, expireSec int)) *ORM_ClearGasPricesByDestChain_Call

func (*ORM_ClearGasPricesByDestChain_Call) RunAndReturn added in v2.13.1

type ORM_ClearTokenPricesByDestChain_Call added in v2.13.1

type ORM_ClearTokenPricesByDestChain_Call struct {
	*mock.Call
}

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

func (*ORM_ClearTokenPricesByDestChain_Call) Return added in v2.13.1

func (*ORM_ClearTokenPricesByDestChain_Call) Run added in v2.13.1

func (_c *ORM_ClearTokenPricesByDestChain_Call) Run(run func(ctx context.Context, destChainSelector uint64, expireSec int)) *ORM_ClearTokenPricesByDestChain_Call

func (*ORM_ClearTokenPricesByDestChain_Call) RunAndReturn added in v2.13.1

type ORM_Expecter added in v2.13.1

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

func (*ORM_Expecter) ClearGasPricesByDestChain added in v2.13.1

func (_e *ORM_Expecter) ClearGasPricesByDestChain(ctx interface{}, destChainSelector interface{}, expireSec interface{}) *ORM_ClearGasPricesByDestChain_Call

ClearGasPricesByDestChain is a helper method to define mock.On call

  • ctx context.Context
  • destChainSelector uint64
  • expireSec int

func (*ORM_Expecter) ClearTokenPricesByDestChain added in v2.13.1

func (_e *ORM_Expecter) ClearTokenPricesByDestChain(ctx interface{}, destChainSelector interface{}, expireSec interface{}) *ORM_ClearTokenPricesByDestChain_Call

ClearTokenPricesByDestChain is a helper method to define mock.On call

  • ctx context.Context
  • destChainSelector uint64
  • expireSec int

func (*ORM_Expecter) GetGasPricesByDestChain added in v2.13.1

func (_e *ORM_Expecter) GetGasPricesByDestChain(ctx interface{}, destChainSelector interface{}) *ORM_GetGasPricesByDestChain_Call

GetGasPricesByDestChain is a helper method to define mock.On call

  • ctx context.Context
  • destChainSelector uint64

func (*ORM_Expecter) GetTokenPricesByDestChain added in v2.13.1

func (_e *ORM_Expecter) GetTokenPricesByDestChain(ctx interface{}, destChainSelector interface{}) *ORM_GetTokenPricesByDestChain_Call

GetTokenPricesByDestChain is a helper method to define mock.On call

  • ctx context.Context
  • destChainSelector uint64

func (*ORM_Expecter) InsertGasPricesForDestChain added in v2.13.1

func (_e *ORM_Expecter) InsertGasPricesForDestChain(ctx interface{}, destChainSelector interface{}, jobId interface{}, gasPrices interface{}) *ORM_InsertGasPricesForDestChain_Call

InsertGasPricesForDestChain is a helper method to define mock.On call

  • ctx context.Context
  • destChainSelector uint64
  • jobId int32
  • gasPrices []ccip.GasPriceUpdate

func (*ORM_Expecter) InsertTokenPricesForDestChain added in v2.13.1

func (_e *ORM_Expecter) InsertTokenPricesForDestChain(ctx interface{}, destChainSelector interface{}, jobId interface{}, tokenPrices interface{}) *ORM_InsertTokenPricesForDestChain_Call

InsertTokenPricesForDestChain is a helper method to define mock.On call

  • ctx context.Context
  • destChainSelector uint64
  • jobId int32
  • tokenPrices []ccip.TokenPriceUpdate

type ORM_GetGasPricesByDestChain_Call added in v2.13.1

type ORM_GetGasPricesByDestChain_Call struct {
	*mock.Call
}

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

func (*ORM_GetGasPricesByDestChain_Call) Return added in v2.13.1

func (*ORM_GetGasPricesByDestChain_Call) Run added in v2.13.1

func (_c *ORM_GetGasPricesByDestChain_Call) Run(run func(ctx context.Context, destChainSelector uint64)) *ORM_GetGasPricesByDestChain_Call

func (*ORM_GetGasPricesByDestChain_Call) RunAndReturn added in v2.13.1

type ORM_GetTokenPricesByDestChain_Call added in v2.13.1

type ORM_GetTokenPricesByDestChain_Call struct {
	*mock.Call
}

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

func (*ORM_GetTokenPricesByDestChain_Call) Return added in v2.13.1

func (*ORM_GetTokenPricesByDestChain_Call) Run added in v2.13.1

func (*ORM_GetTokenPricesByDestChain_Call) RunAndReturn added in v2.13.1

type ORM_InsertGasPricesForDestChain_Call added in v2.13.1

type ORM_InsertGasPricesForDestChain_Call struct {
	*mock.Call
}

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

func (*ORM_InsertGasPricesForDestChain_Call) Return added in v2.13.1

func (*ORM_InsertGasPricesForDestChain_Call) Run added in v2.13.1

func (_c *ORM_InsertGasPricesForDestChain_Call) Run(run func(ctx context.Context, destChainSelector uint64, jobId int32, gasPrices []ccip.GasPriceUpdate)) *ORM_InsertGasPricesForDestChain_Call

func (*ORM_InsertGasPricesForDestChain_Call) RunAndReturn added in v2.13.1

type ORM_InsertTokenPricesForDestChain_Call added in v2.13.1

type ORM_InsertTokenPricesForDestChain_Call struct {
	*mock.Call
}

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

func (*ORM_InsertTokenPricesForDestChain_Call) Return added in v2.13.1

func (*ORM_InsertTokenPricesForDestChain_Call) Run added in v2.13.1

func (_c *ORM_InsertTokenPricesForDestChain_Call) Run(run func(ctx context.Context, destChainSelector uint64, jobId int32, tokenPrices []ccip.TokenPriceUpdate)) *ORM_InsertTokenPricesForDestChain_Call

func (*ORM_InsertTokenPricesForDestChain_Call) RunAndReturn added in v2.13.1

Jump to

Keyboard shortcuts

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