mocks

package
v0.0.0-...-e867858 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 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 ChainService

type ChainService struct {
	mock.Mock
}

ChainService is an autogenerated mock type for the chainService type

func NewChainService

func NewChainService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ChainService

NewChainService creates a new instance of ChainService. 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 (*ChainService) EXPECT

func (_m *ChainService) EXPECT() *ChainService_Expecter

func (*ChainService) LatestHead

func (_m *ChainService) LatestHead(ctx context.Context) (types.Head, error)

LatestHead provides a mock function with given fields: ctx

type ChainService_Expecter

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

func (*ChainService_Expecter) LatestHead

func (_e *ChainService_Expecter) LatestHead(ctx interface{}) *ChainService_LatestHead_Call

LatestHead is a helper method to define mock.On call

  • ctx context.Context

type ChainService_LatestHead_Call

type ChainService_LatestHead_Call struct {
	*mock.Call
}

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

func (*ChainService_LatestHead_Call) Return

func (*ChainService_LatestHead_Call) Run

func (*ChainService_LatestHead_Call) RunAndReturn

type TargetStrategy

type TargetStrategy struct {
	mock.Mock
}

TargetStrategy is an autogenerated mock type for the TargetStrategy type

func NewTargetStrategy

func NewTargetStrategy(t interface {
	mock.TestingT
	Cleanup(func())
}) *TargetStrategy

NewTargetStrategy creates a new instance of TargetStrategy. 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 (*TargetStrategy) EXPECT

func (*TargetStrategy) GetEstimateFee

func (_m *TargetStrategy) GetEstimateFee(ctx context.Context, report []byte, reportContext []byte, signatures [][]byte, request capabilities.CapabilityRequest) (types.EstimateFee, error)

GetEstimateFee provides a mock function with given fields: ctx, report, reportContext, signatures, request

func (*TargetStrategy) GetTransactionFee

func (_m *TargetStrategy) GetTransactionFee(ctx context.Context, transactionID string) (decimal.Decimal, error)

GetTransactionFee provides a mock function with given fields: ctx, transactionID

func (*TargetStrategy) GetTransactionStatus

func (_m *TargetStrategy) GetTransactionStatus(ctx context.Context, transactionID string) (types.TransactionStatus, error)

GetTransactionStatus provides a mock function with given fields: ctx, transactionID

func (*TargetStrategy) QueryTransmissionState

func (_m *TargetStrategy) QueryTransmissionState(ctx context.Context, reportID uint16, request capabilities.CapabilityRequest) (*writetarget.TransmissionState, error)

QueryTransmissionState provides a mock function with given fields: ctx, reportID, request

func (*TargetStrategy) TransmitReport

func (_m *TargetStrategy) TransmitReport(ctx context.Context, report []byte, reportContext []byte, signatures [][]byte, request capabilities.CapabilityRequest) (string, error)

TransmitReport provides a mock function with given fields: ctx, report, reportContext, signatures, request

type TargetStrategy_Expecter

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

func (*TargetStrategy_Expecter) GetEstimateFee

func (_e *TargetStrategy_Expecter) GetEstimateFee(ctx interface{}, report interface{}, reportContext interface{}, signatures interface{}, request interface{}) *TargetStrategy_GetEstimateFee_Call

GetEstimateFee is a helper method to define mock.On call

  • ctx context.Context
  • report []byte
  • reportContext []byte
  • signatures [][]byte
  • request capabilities.CapabilityRequest

func (*TargetStrategy_Expecter) GetTransactionFee

func (_e *TargetStrategy_Expecter) GetTransactionFee(ctx interface{}, transactionID interface{}) *TargetStrategy_GetTransactionFee_Call

GetTransactionFee is a helper method to define mock.On call

  • ctx context.Context
  • transactionID string

func (*TargetStrategy_Expecter) GetTransactionStatus

func (_e *TargetStrategy_Expecter) GetTransactionStatus(ctx interface{}, transactionID interface{}) *TargetStrategy_GetTransactionStatus_Call

GetTransactionStatus is a helper method to define mock.On call

  • ctx context.Context
  • transactionID string

func (*TargetStrategy_Expecter) QueryTransmissionState

func (_e *TargetStrategy_Expecter) QueryTransmissionState(ctx interface{}, reportID interface{}, request interface{}) *TargetStrategy_QueryTransmissionState_Call

QueryTransmissionState is a helper method to define mock.On call

  • ctx context.Context
  • reportID uint16
  • request capabilities.CapabilityRequest

func (*TargetStrategy_Expecter) TransmitReport

func (_e *TargetStrategy_Expecter) TransmitReport(ctx interface{}, report interface{}, reportContext interface{}, signatures interface{}, request interface{}) *TargetStrategy_TransmitReport_Call

TransmitReport is a helper method to define mock.On call

  • ctx context.Context
  • report []byte
  • reportContext []byte
  • signatures [][]byte
  • request capabilities.CapabilityRequest

type TargetStrategy_GetEstimateFee_Call

type TargetStrategy_GetEstimateFee_Call struct {
	*mock.Call
}

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

func (*TargetStrategy_GetEstimateFee_Call) Return

func (*TargetStrategy_GetEstimateFee_Call) Run

func (_c *TargetStrategy_GetEstimateFee_Call) Run(run func(ctx context.Context, report []byte, reportContext []byte, signatures [][]byte, request capabilities.CapabilityRequest)) *TargetStrategy_GetEstimateFee_Call

func (*TargetStrategy_GetEstimateFee_Call) RunAndReturn

type TargetStrategy_GetTransactionFee_Call

type TargetStrategy_GetTransactionFee_Call struct {
	*mock.Call
}

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

func (*TargetStrategy_GetTransactionFee_Call) Return

func (*TargetStrategy_GetTransactionFee_Call) Run

func (*TargetStrategy_GetTransactionFee_Call) RunAndReturn

type TargetStrategy_GetTransactionStatus_Call

type TargetStrategy_GetTransactionStatus_Call struct {
	*mock.Call
}

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

func (*TargetStrategy_GetTransactionStatus_Call) Return

func (*TargetStrategy_GetTransactionStatus_Call) Run

func (*TargetStrategy_GetTransactionStatus_Call) RunAndReturn

type TargetStrategy_QueryTransmissionState_Call

type TargetStrategy_QueryTransmissionState_Call struct {
	*mock.Call
}

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

func (*TargetStrategy_QueryTransmissionState_Call) Return

func (*TargetStrategy_QueryTransmissionState_Call) Run

type TargetStrategy_TransmitReport_Call

type TargetStrategy_TransmitReport_Call struct {
	*mock.Call
}

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

func (*TargetStrategy_TransmitReport_Call) Return

func (*TargetStrategy_TransmitReport_Call) Run

func (_c *TargetStrategy_TransmitReport_Call) Run(run func(ctx context.Context, report []byte, reportContext []byte, signatures [][]byte, request capabilities.CapabilityRequest)) *TargetStrategy_TransmitReport_Call

func (*TargetStrategy_TransmitReport_Call) RunAndReturn

Jump to

Keyboard shortcuts

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