mocks

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 3 Imported by: ? 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 OffRampReader

type OffRampReader struct {
	mock.Mock
}

OffRampReader is an autogenerated mock type for the OffRampReader type

func NewOffRampReader

func NewOffRampReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *OffRampReader

NewOffRampReader creates a new instance of OffRampReader. 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 (*OffRampReader) Address

func (_m *OffRampReader) Address(ctx context.Context) (ccip.Address, error)

Address provides a mock function with given fields: ctx

func (*OffRampReader) ChangeConfig

func (_m *OffRampReader) ChangeConfig(ctx context.Context, onchainConfig []byte, offchainConfig []byte) (ccip.Address, ccip.Address, error)

ChangeConfig provides a mock function with given fields: ctx, onchainConfig, offchainConfig

func (*OffRampReader) Close

func (_m *OffRampReader) Close() error

Close provides a mock function with given fields:

func (*OffRampReader) CurrentRateLimiterState

func (_m *OffRampReader) CurrentRateLimiterState(ctx context.Context) (ccip.TokenBucketRateLimit, error)

CurrentRateLimiterState provides a mock function with given fields: ctx

func (*OffRampReader) DecodeExecutionReport

func (_m *OffRampReader) DecodeExecutionReport(ctx context.Context, report []byte) (ccip.ExecReport, error)

DecodeExecutionReport provides a mock function with given fields: ctx, report

func (*OffRampReader) EXPECT

func (_m *OffRampReader) EXPECT() *OffRampReader_Expecter

func (*OffRampReader) EncodeExecutionReport

func (_m *OffRampReader) EncodeExecutionReport(ctx context.Context, report ccip.ExecReport) ([]byte, error)

EncodeExecutionReport provides a mock function with given fields: ctx, report

func (*OffRampReader) GasPriceEstimator

func (_m *OffRampReader) GasPriceEstimator(ctx context.Context) (ccip.GasPriceEstimatorExec, error)

GasPriceEstimator provides a mock function with given fields: ctx

func (*OffRampReader) GetExecutionState

func (_m *OffRampReader) GetExecutionState(ctx context.Context, sequenceNumber uint64) (uint8, error)

GetExecutionState provides a mock function with given fields: ctx, sequenceNumber

func (*OffRampReader) GetExecutionStateChangesBetweenSeqNums

func (_m *OffRampReader) GetExecutionStateChangesBetweenSeqNums(ctx context.Context, seqNumMin uint64, seqNumMax uint64, confirmations int) ([]ccip.ExecutionStateChangedWithTxMeta, error)

GetExecutionStateChangesBetweenSeqNums provides a mock function with given fields: ctx, seqNumMin, seqNumMax, confirmations

func (*OffRampReader) GetRouter

func (_m *OffRampReader) GetRouter(ctx context.Context) (ccip.Address, error)

GetRouter provides a mock function with given fields: ctx

func (*OffRampReader) GetSourceToDestTokensMapping

func (_m *OffRampReader) GetSourceToDestTokensMapping(ctx context.Context) (map[ccip.Address]ccip.Address, error)

GetSourceToDestTokensMapping provides a mock function with given fields: ctx

func (*OffRampReader) GetStaticConfig

func (_m *OffRampReader) GetStaticConfig(ctx context.Context) (ccip.OffRampStaticConfig, error)

GetStaticConfig provides a mock function with given fields: ctx

func (*OffRampReader) GetTokens

func (_m *OffRampReader) GetTokens(ctx context.Context) (ccip.OffRampTokens, error)

GetTokens provides a mock function with given fields: ctx

func (*OffRampReader) ListSenderNonces

func (_m *OffRampReader) ListSenderNonces(ctx context.Context, senders []ccip.Address) (map[ccip.Address]uint64, error)

ListSenderNonces provides a mock function with given fields: ctx, senders

func (*OffRampReader) OffchainConfig

func (_m *OffRampReader) OffchainConfig(ctx context.Context) (ccip.ExecOffchainConfig, error)

OffchainConfig provides a mock function with given fields: ctx

func (*OffRampReader) OnchainConfig

func (_m *OffRampReader) OnchainConfig(ctx context.Context) (ccip.ExecOnchainConfig, error)

OnchainConfig provides a mock function with given fields: ctx

type OffRampReader_Address_Call

type OffRampReader_Address_Call struct {
	*mock.Call
}

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

func (*OffRampReader_Address_Call) Return

func (*OffRampReader_Address_Call) Run

func (*OffRampReader_Address_Call) RunAndReturn

type OffRampReader_ChangeConfig_Call

type OffRampReader_ChangeConfig_Call struct {
	*mock.Call
}

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

func (*OffRampReader_ChangeConfig_Call) Return

func (*OffRampReader_ChangeConfig_Call) Run

func (_c *OffRampReader_ChangeConfig_Call) Run(run func(ctx context.Context, onchainConfig []byte, offchainConfig []byte)) *OffRampReader_ChangeConfig_Call

func (*OffRampReader_ChangeConfig_Call) RunAndReturn

type OffRampReader_Close_Call

type OffRampReader_Close_Call struct {
	*mock.Call
}

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

func (*OffRampReader_Close_Call) Return

func (*OffRampReader_Close_Call) Run

func (*OffRampReader_Close_Call) RunAndReturn

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

type OffRampReader_CurrentRateLimiterState_Call

type OffRampReader_CurrentRateLimiterState_Call struct {
	*mock.Call
}

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

func (*OffRampReader_CurrentRateLimiterState_Call) Return

func (*OffRampReader_CurrentRateLimiterState_Call) Run

func (*OffRampReader_CurrentRateLimiterState_Call) RunAndReturn

type OffRampReader_DecodeExecutionReport_Call

type OffRampReader_DecodeExecutionReport_Call struct {
	*mock.Call
}

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

func (*OffRampReader_DecodeExecutionReport_Call) Return

func (*OffRampReader_DecodeExecutionReport_Call) Run

func (*OffRampReader_DecodeExecutionReport_Call) RunAndReturn

type OffRampReader_EncodeExecutionReport_Call

type OffRampReader_EncodeExecutionReport_Call struct {
	*mock.Call
}

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

func (*OffRampReader_EncodeExecutionReport_Call) Return

func (*OffRampReader_EncodeExecutionReport_Call) Run

func (*OffRampReader_EncodeExecutionReport_Call) RunAndReturn

type OffRampReader_Expecter

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

func (*OffRampReader_Expecter) Address

func (_e *OffRampReader_Expecter) Address(ctx interface{}) *OffRampReader_Address_Call

Address is a helper method to define mock.On call

  • ctx context.Context

func (*OffRampReader_Expecter) ChangeConfig

func (_e *OffRampReader_Expecter) ChangeConfig(ctx interface{}, onchainConfig interface{}, offchainConfig interface{}) *OffRampReader_ChangeConfig_Call

ChangeConfig is a helper method to define mock.On call

  • ctx context.Context
  • onchainConfig []byte
  • offchainConfig []byte

func (*OffRampReader_Expecter) Close

Close is a helper method to define mock.On call

func (*OffRampReader_Expecter) CurrentRateLimiterState

func (_e *OffRampReader_Expecter) CurrentRateLimiterState(ctx interface{}) *OffRampReader_CurrentRateLimiterState_Call

CurrentRateLimiterState is a helper method to define mock.On call

  • ctx context.Context

func (*OffRampReader_Expecter) DecodeExecutionReport

func (_e *OffRampReader_Expecter) DecodeExecutionReport(ctx interface{}, report interface{}) *OffRampReader_DecodeExecutionReport_Call

DecodeExecutionReport is a helper method to define mock.On call

  • ctx context.Context
  • report []byte

func (*OffRampReader_Expecter) EncodeExecutionReport

func (_e *OffRampReader_Expecter) EncodeExecutionReport(ctx interface{}, report interface{}) *OffRampReader_EncodeExecutionReport_Call

EncodeExecutionReport is a helper method to define mock.On call

  • ctx context.Context
  • report ccip.ExecReport

func (*OffRampReader_Expecter) GasPriceEstimator

func (_e *OffRampReader_Expecter) GasPriceEstimator(ctx interface{}) *OffRampReader_GasPriceEstimator_Call

GasPriceEstimator is a helper method to define mock.On call

  • ctx context.Context

func (*OffRampReader_Expecter) GetExecutionState

func (_e *OffRampReader_Expecter) GetExecutionState(ctx interface{}, sequenceNumber interface{}) *OffRampReader_GetExecutionState_Call

GetExecutionState is a helper method to define mock.On call

  • ctx context.Context
  • sequenceNumber uint64

func (*OffRampReader_Expecter) GetExecutionStateChangesBetweenSeqNums

func (_e *OffRampReader_Expecter) GetExecutionStateChangesBetweenSeqNums(ctx interface{}, seqNumMin interface{}, seqNumMax interface{}, confirmations interface{}) *OffRampReader_GetExecutionStateChangesBetweenSeqNums_Call

GetExecutionStateChangesBetweenSeqNums is a helper method to define mock.On call

  • ctx context.Context
  • seqNumMin uint64
  • seqNumMax uint64
  • confirmations int

func (*OffRampReader_Expecter) GetRouter

func (_e *OffRampReader_Expecter) GetRouter(ctx interface{}) *OffRampReader_GetRouter_Call

GetRouter is a helper method to define mock.On call

  • ctx context.Context

func (*OffRampReader_Expecter) GetSourceToDestTokensMapping

func (_e *OffRampReader_Expecter) GetSourceToDestTokensMapping(ctx interface{}) *OffRampReader_GetSourceToDestTokensMapping_Call

GetSourceToDestTokensMapping is a helper method to define mock.On call

  • ctx context.Context

func (*OffRampReader_Expecter) GetStaticConfig

func (_e *OffRampReader_Expecter) GetStaticConfig(ctx interface{}) *OffRampReader_GetStaticConfig_Call

GetStaticConfig is a helper method to define mock.On call

  • ctx context.Context

func (*OffRampReader_Expecter) GetTokens

func (_e *OffRampReader_Expecter) GetTokens(ctx interface{}) *OffRampReader_GetTokens_Call

GetTokens is a helper method to define mock.On call

  • ctx context.Context

func (*OffRampReader_Expecter) ListSenderNonces

func (_e *OffRampReader_Expecter) ListSenderNonces(ctx interface{}, senders interface{}) *OffRampReader_ListSenderNonces_Call

ListSenderNonces is a helper method to define mock.On call

  • ctx context.Context
  • senders []ccip.Address

func (*OffRampReader_Expecter) OffchainConfig

func (_e *OffRampReader_Expecter) OffchainConfig(ctx interface{}) *OffRampReader_OffchainConfig_Call

OffchainConfig is a helper method to define mock.On call

  • ctx context.Context

func (*OffRampReader_Expecter) OnchainConfig

func (_e *OffRampReader_Expecter) OnchainConfig(ctx interface{}) *OffRampReader_OnchainConfig_Call

OnchainConfig is a helper method to define mock.On call

  • ctx context.Context

type OffRampReader_GasPriceEstimator_Call

type OffRampReader_GasPriceEstimator_Call struct {
	*mock.Call
}

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

func (*OffRampReader_GasPriceEstimator_Call) Return

func (*OffRampReader_GasPriceEstimator_Call) Run

func (*OffRampReader_GasPriceEstimator_Call) RunAndReturn

type OffRampReader_GetExecutionStateChangesBetweenSeqNums_Call

type OffRampReader_GetExecutionStateChangesBetweenSeqNums_Call struct {
	*mock.Call
}

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

func (*OffRampReader_GetExecutionStateChangesBetweenSeqNums_Call) Run

type OffRampReader_GetExecutionState_Call

type OffRampReader_GetExecutionState_Call struct {
	*mock.Call
}

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

func (*OffRampReader_GetExecutionState_Call) Return

func (*OffRampReader_GetExecutionState_Call) Run

func (*OffRampReader_GetExecutionState_Call) RunAndReturn

type OffRampReader_GetRouter_Call

type OffRampReader_GetRouter_Call struct {
	*mock.Call
}

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

func (*OffRampReader_GetRouter_Call) Return

func (*OffRampReader_GetRouter_Call) Run

func (*OffRampReader_GetRouter_Call) RunAndReturn

type OffRampReader_GetSourceToDestTokensMapping_Call

type OffRampReader_GetSourceToDestTokensMapping_Call struct {
	*mock.Call
}

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

func (*OffRampReader_GetSourceToDestTokensMapping_Call) Return

func (*OffRampReader_GetSourceToDestTokensMapping_Call) Run

func (*OffRampReader_GetSourceToDestTokensMapping_Call) RunAndReturn

type OffRampReader_GetStaticConfig_Call

type OffRampReader_GetStaticConfig_Call struct {
	*mock.Call
}

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

func (*OffRampReader_GetStaticConfig_Call) Return

func (*OffRampReader_GetStaticConfig_Call) Run

func (*OffRampReader_GetStaticConfig_Call) RunAndReturn

type OffRampReader_GetTokens_Call

type OffRampReader_GetTokens_Call struct {
	*mock.Call
}

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

func (*OffRampReader_GetTokens_Call) Return

func (*OffRampReader_GetTokens_Call) Run

func (*OffRampReader_GetTokens_Call) RunAndReturn

type OffRampReader_ListSenderNonces_Call

type OffRampReader_ListSenderNonces_Call struct {
	*mock.Call
}

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

func (*OffRampReader_ListSenderNonces_Call) Return

func (*OffRampReader_ListSenderNonces_Call) Run

func (*OffRampReader_ListSenderNonces_Call) RunAndReturn

type OffRampReader_OffchainConfig_Call

type OffRampReader_OffchainConfig_Call struct {
	*mock.Call
}

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

func (*OffRampReader_OffchainConfig_Call) Return

func (*OffRampReader_OffchainConfig_Call) Run

func (*OffRampReader_OffchainConfig_Call) RunAndReturn

type OffRampReader_OnchainConfig_Call

type OffRampReader_OnchainConfig_Call struct {
	*mock.Call
}

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

func (*OffRampReader_OnchainConfig_Call) Return

func (*OffRampReader_OnchainConfig_Call) Run

func (*OffRampReader_OnchainConfig_Call) RunAndReturn

Jump to

Keyboard shortcuts

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