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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContractSubmitter

type ContractSubmitter struct {
	mock.Mock
}

ContractSubmitter is an autogenerated mock type for the ContractSubmitter type

func NewContractSubmitter

func NewContractSubmitter(t interface {
	mock.TestingT
	Cleanup(func())
}) *ContractSubmitter

NewContractSubmitter creates a new instance of ContractSubmitter. 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 (*ContractSubmitter) EXPECT added in v2.15.0

func (*ContractSubmitter) Submit

func (_m *ContractSubmitter) Submit(ctx context.Context, roundID *big.Int, submission *big.Int, idempotencyKey *string) error

Submit provides a mock function with given fields: ctx, roundID, submission, idempotencyKey

type ContractSubmitter_Expecter added in v2.15.0

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

func (*ContractSubmitter_Expecter) Submit added in v2.15.0

func (_e *ContractSubmitter_Expecter) Submit(ctx interface{}, roundID interface{}, submission interface{}, idempotencyKey interface{}) *ContractSubmitter_Submit_Call

Submit is a helper method to define mock.On call

  • ctx context.Context
  • roundID *big.Int
  • submission *big.Int
  • idempotencyKey *string

type ContractSubmitter_Submit_Call added in v2.15.0

type ContractSubmitter_Submit_Call struct {
	*mock.Call
}

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

func (*ContractSubmitter_Submit_Call) Return added in v2.15.0

func (*ContractSubmitter_Submit_Call) Run added in v2.15.0

func (_c *ContractSubmitter_Submit_Call) Run(run func(ctx context.Context, roundID *big.Int, submission *big.Int, idempotencyKey *string)) *ContractSubmitter_Submit_Call

func (*ContractSubmitter_Submit_Call) RunAndReturn added in v2.15.0

type Flags

type Flags struct {
	mock.Mock
}

Flags is an autogenerated mock type for the Flags type

func NewFlags

func NewFlags(t interface {
	mock.TestingT
	Cleanup(func())
}) *Flags

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

func (_m *Flags) Address() common.Address

Address provides a mock function with given fields:

func (*Flags) ContractExists

func (_m *Flags) ContractExists() bool

ContractExists provides a mock function with given fields:

func (*Flags) EXPECT added in v2.15.0

func (_m *Flags) EXPECT() *Flags_Expecter

func (*Flags) IsLowered

func (_m *Flags) IsLowered(contractAddr common.Address) (bool, error)

IsLowered provides a mock function with given fields: contractAddr

func (*Flags) ParseLog

func (_m *Flags) ParseLog(log types.Log) (generated.AbigenLog, error)

ParseLog provides a mock function with given fields: log

type Flags_Address_Call added in v2.15.0

type Flags_Address_Call struct {
	*mock.Call
}

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

func (*Flags_Address_Call) Return added in v2.15.0

func (*Flags_Address_Call) Run added in v2.15.0

func (_c *Flags_Address_Call) Run(run func()) *Flags_Address_Call

func (*Flags_Address_Call) RunAndReturn added in v2.15.0

func (_c *Flags_Address_Call) RunAndReturn(run func() common.Address) *Flags_Address_Call

type Flags_ContractExists_Call added in v2.15.0

type Flags_ContractExists_Call struct {
	*mock.Call
}

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

func (*Flags_ContractExists_Call) Return added in v2.15.0

func (*Flags_ContractExists_Call) Run added in v2.15.0

func (*Flags_ContractExists_Call) RunAndReturn added in v2.15.0

func (_c *Flags_ContractExists_Call) RunAndReturn(run func() bool) *Flags_ContractExists_Call

type Flags_Expecter added in v2.15.0

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

func (*Flags_Expecter) Address added in v2.15.0

func (_e *Flags_Expecter) Address() *Flags_Address_Call

Address is a helper method to define mock.On call

func (*Flags_Expecter) ContractExists added in v2.15.0

func (_e *Flags_Expecter) ContractExists() *Flags_ContractExists_Call

ContractExists is a helper method to define mock.On call

func (*Flags_Expecter) IsLowered added in v2.15.0

func (_e *Flags_Expecter) IsLowered(contractAddr interface{}) *Flags_IsLowered_Call

IsLowered is a helper method to define mock.On call

  • contractAddr common.Address

func (*Flags_Expecter) ParseLog added in v2.15.0

func (_e *Flags_Expecter) ParseLog(log interface{}) *Flags_ParseLog_Call

ParseLog is a helper method to define mock.On call

  • log types.Log

type Flags_IsLowered_Call added in v2.15.0

type Flags_IsLowered_Call struct {
	*mock.Call
}

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

func (*Flags_IsLowered_Call) Return added in v2.15.0

func (_c *Flags_IsLowered_Call) Return(_a0 bool, _a1 error) *Flags_IsLowered_Call

func (*Flags_IsLowered_Call) Run added in v2.15.0

func (_c *Flags_IsLowered_Call) Run(run func(contractAddr common.Address)) *Flags_IsLowered_Call

func (*Flags_IsLowered_Call) RunAndReturn added in v2.15.0

func (_c *Flags_IsLowered_Call) RunAndReturn(run func(common.Address) (bool, error)) *Flags_IsLowered_Call

type Flags_ParseLog_Call added in v2.15.0

type Flags_ParseLog_Call struct {
	*mock.Call
}

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

func (*Flags_ParseLog_Call) Return added in v2.15.0

func (*Flags_ParseLog_Call) Run added in v2.15.0

func (_c *Flags_ParseLog_Call) Run(run func(log types.Log)) *Flags_ParseLog_Call

func (*Flags_ParseLog_Call) RunAndReturn added in v2.15.0

func (_c *Flags_ParseLog_Call) RunAndReturn(run func(types.Log) (generated.AbigenLog, error)) *Flags_ParseLog_Call

type KeyStoreInterface

type KeyStoreInterface struct {
	mock.Mock
}

KeyStoreInterface is an autogenerated mock type for the KeyStoreInterface type

func NewKeyStoreInterface

func NewKeyStoreInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *KeyStoreInterface

NewKeyStoreInterface creates a new instance of KeyStoreInterface. 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 (*KeyStoreInterface) EXPECT added in v2.15.0

func (*KeyStoreInterface) EnabledKeysForChain

func (_m *KeyStoreInterface) EnabledKeysForChain(ctx context.Context, chainID *big.Int) ([]ethkey.KeyV2, error)

EnabledKeysForChain provides a mock function with given fields: ctx, chainID

func (*KeyStoreInterface) GetRoundRobinAddress

func (_m *KeyStoreInterface) GetRoundRobinAddress(ctx context.Context, chainID *big.Int, addrs ...common.Address) (common.Address, error)

GetRoundRobinAddress provides a mock function with given fields: ctx, chainID, addrs

type KeyStoreInterface_EnabledKeysForChain_Call added in v2.15.0

type KeyStoreInterface_EnabledKeysForChain_Call struct {
	*mock.Call
}

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

func (*KeyStoreInterface_EnabledKeysForChain_Call) Return added in v2.15.0

func (*KeyStoreInterface_EnabledKeysForChain_Call) Run added in v2.15.0

func (*KeyStoreInterface_EnabledKeysForChain_Call) RunAndReturn added in v2.15.0

type KeyStoreInterface_Expecter added in v2.15.0

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

func (*KeyStoreInterface_Expecter) EnabledKeysForChain added in v2.15.0

func (_e *KeyStoreInterface_Expecter) EnabledKeysForChain(ctx interface{}, chainID interface{}) *KeyStoreInterface_EnabledKeysForChain_Call

EnabledKeysForChain is a helper method to define mock.On call

  • ctx context.Context
  • chainID *big.Int

func (*KeyStoreInterface_Expecter) GetRoundRobinAddress added in v2.15.0

func (_e *KeyStoreInterface_Expecter) GetRoundRobinAddress(ctx interface{}, chainID interface{}, addrs ...interface{}) *KeyStoreInterface_GetRoundRobinAddress_Call

GetRoundRobinAddress is a helper method to define mock.On call

  • ctx context.Context
  • chainID *big.Int
  • addrs ...common.Address

type KeyStoreInterface_GetRoundRobinAddress_Call added in v2.15.0

type KeyStoreInterface_GetRoundRobinAddress_Call struct {
	*mock.Call
}

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

func (*KeyStoreInterface_GetRoundRobinAddress_Call) Return added in v2.15.0

func (*KeyStoreInterface_GetRoundRobinAddress_Call) Run added in v2.15.0

func (*KeyStoreInterface_GetRoundRobinAddress_Call) RunAndReturn added in v2.15.0

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

func (_m *ORM) CountFluxMonitorRoundStats(ctx context.Context) (int, error)

CountFluxMonitorRoundStats provides a mock function with given fields: ctx

func (*ORM) CreateEthTransaction

func (_m *ORM) CreateEthTransaction(ctx context.Context, fromAddress common.Address, toAddress common.Address, payload []byte, gasLimit uint64, idempotencyKey *string) error

CreateEthTransaction provides a mock function with given fields: ctx, fromAddress, toAddress, payload, gasLimit, idempotencyKey

func (*ORM) DeleteFluxMonitorRoundsBackThrough

func (_m *ORM) DeleteFluxMonitorRoundsBackThrough(ctx context.Context, aggregator common.Address, roundID uint32) error

DeleteFluxMonitorRoundsBackThrough provides a mock function with given fields: ctx, aggregator, roundID

func (*ORM) EXPECT added in v2.15.0

func (_m *ORM) EXPECT() *ORM_Expecter

func (*ORM) FindOrCreateFluxMonitorRoundStats

func (_m *ORM) FindOrCreateFluxMonitorRoundStats(ctx context.Context, aggregator common.Address, roundID uint32, newRoundLogs uint) (fluxmonitorv2.FluxMonitorRoundStatsV2, error)

FindOrCreateFluxMonitorRoundStats provides a mock function with given fields: ctx, aggregator, roundID, newRoundLogs

func (*ORM) MostRecentFluxMonitorRoundID

func (_m *ORM) MostRecentFluxMonitorRoundID(ctx context.Context, aggregator common.Address) (uint32, error)

MostRecentFluxMonitorRoundID provides a mock function with given fields: ctx, aggregator

func (*ORM) UpdateFluxMonitorRoundStats

func (_m *ORM) UpdateFluxMonitorRoundStats(ctx context.Context, aggregator common.Address, roundID uint32, runID int64, newRoundLogsAddition uint) error

UpdateFluxMonitorRoundStats provides a mock function with given fields: ctx, aggregator, roundID, runID, newRoundLogsAddition

func (*ORM) WithDataSource added in v2.12.0

func (_m *ORM) WithDataSource(_a0 sqlutil.DataSource) fluxmonitorv2.ORM

WithDataSource provides a mock function with given fields: _a0

type ORM_CountFluxMonitorRoundStats_Call added in v2.15.0

type ORM_CountFluxMonitorRoundStats_Call struct {
	*mock.Call
}

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

func (*ORM_CountFluxMonitorRoundStats_Call) Return added in v2.15.0

func (*ORM_CountFluxMonitorRoundStats_Call) Run added in v2.15.0

func (*ORM_CountFluxMonitorRoundStats_Call) RunAndReturn added in v2.15.0

type ORM_CreateEthTransaction_Call added in v2.15.0

type ORM_CreateEthTransaction_Call struct {
	*mock.Call
}

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

func (*ORM_CreateEthTransaction_Call) Return added in v2.15.0

func (*ORM_CreateEthTransaction_Call) Run added in v2.15.0

func (_c *ORM_CreateEthTransaction_Call) Run(run func(ctx context.Context, fromAddress common.Address, toAddress common.Address, payload []byte, gasLimit uint64, idempotencyKey *string)) *ORM_CreateEthTransaction_Call

func (*ORM_CreateEthTransaction_Call) RunAndReturn added in v2.15.0

type ORM_DeleteFluxMonitorRoundsBackThrough_Call added in v2.15.0

type ORM_DeleteFluxMonitorRoundsBackThrough_Call struct {
	*mock.Call
}

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

func (*ORM_DeleteFluxMonitorRoundsBackThrough_Call) Return added in v2.15.0

func (*ORM_DeleteFluxMonitorRoundsBackThrough_Call) Run added in v2.15.0

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

func (_e *ORM_Expecter) CountFluxMonitorRoundStats(ctx interface{}) *ORM_CountFluxMonitorRoundStats_Call

CountFluxMonitorRoundStats is a helper method to define mock.On call

  • ctx context.Context

func (*ORM_Expecter) CreateEthTransaction added in v2.15.0

func (_e *ORM_Expecter) CreateEthTransaction(ctx interface{}, fromAddress interface{}, toAddress interface{}, payload interface{}, gasLimit interface{}, idempotencyKey interface{}) *ORM_CreateEthTransaction_Call

CreateEthTransaction is a helper method to define mock.On call

  • ctx context.Context
  • fromAddress common.Address
  • toAddress common.Address
  • payload []byte
  • gasLimit uint64
  • idempotencyKey *string

func (*ORM_Expecter) DeleteFluxMonitorRoundsBackThrough added in v2.15.0

func (_e *ORM_Expecter) DeleteFluxMonitorRoundsBackThrough(ctx interface{}, aggregator interface{}, roundID interface{}) *ORM_DeleteFluxMonitorRoundsBackThrough_Call

DeleteFluxMonitorRoundsBackThrough is a helper method to define mock.On call

  • ctx context.Context
  • aggregator common.Address
  • roundID uint32

func (*ORM_Expecter) FindOrCreateFluxMonitorRoundStats added in v2.15.0

func (_e *ORM_Expecter) FindOrCreateFluxMonitorRoundStats(ctx interface{}, aggregator interface{}, roundID interface{}, newRoundLogs interface{}) *ORM_FindOrCreateFluxMonitorRoundStats_Call

FindOrCreateFluxMonitorRoundStats is a helper method to define mock.On call

  • ctx context.Context
  • aggregator common.Address
  • roundID uint32
  • newRoundLogs uint

func (*ORM_Expecter) MostRecentFluxMonitorRoundID added in v2.15.0

func (_e *ORM_Expecter) MostRecentFluxMonitorRoundID(ctx interface{}, aggregator interface{}) *ORM_MostRecentFluxMonitorRoundID_Call

MostRecentFluxMonitorRoundID is a helper method to define mock.On call

  • ctx context.Context
  • aggregator common.Address

func (*ORM_Expecter) UpdateFluxMonitorRoundStats added in v2.15.0

func (_e *ORM_Expecter) UpdateFluxMonitorRoundStats(ctx interface{}, aggregator interface{}, roundID interface{}, runID interface{}, newRoundLogsAddition interface{}) *ORM_UpdateFluxMonitorRoundStats_Call

UpdateFluxMonitorRoundStats is a helper method to define mock.On call

  • ctx context.Context
  • aggregator common.Address
  • roundID uint32
  • runID int64
  • newRoundLogsAddition uint

func (*ORM_Expecter) WithDataSource added in v2.15.0

func (_e *ORM_Expecter) WithDataSource(_a0 interface{}) *ORM_WithDataSource_Call

WithDataSource is a helper method to define mock.On call

  • _a0 sqlutil.DataSource

type ORM_FindOrCreateFluxMonitorRoundStats_Call added in v2.15.0

type ORM_FindOrCreateFluxMonitorRoundStats_Call struct {
	*mock.Call
}

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

func (*ORM_FindOrCreateFluxMonitorRoundStats_Call) Return added in v2.15.0

func (*ORM_FindOrCreateFluxMonitorRoundStats_Call) Run added in v2.15.0

func (*ORM_FindOrCreateFluxMonitorRoundStats_Call) RunAndReturn added in v2.15.0

type ORM_MostRecentFluxMonitorRoundID_Call added in v2.15.0

type ORM_MostRecentFluxMonitorRoundID_Call struct {
	*mock.Call
}

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

func (*ORM_MostRecentFluxMonitorRoundID_Call) Return added in v2.15.0

func (*ORM_MostRecentFluxMonitorRoundID_Call) Run added in v2.15.0

func (*ORM_MostRecentFluxMonitorRoundID_Call) RunAndReturn added in v2.15.0

type ORM_UpdateFluxMonitorRoundStats_Call added in v2.15.0

type ORM_UpdateFluxMonitorRoundStats_Call struct {
	*mock.Call
}

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

func (*ORM_UpdateFluxMonitorRoundStats_Call) Return added in v2.15.0

func (*ORM_UpdateFluxMonitorRoundStats_Call) Run added in v2.15.0

func (_c *ORM_UpdateFluxMonitorRoundStats_Call) Run(run func(ctx context.Context, aggregator common.Address, roundID uint32, runID int64, newRoundLogsAddition uint)) *ORM_UpdateFluxMonitorRoundStats_Call

func (*ORM_UpdateFluxMonitorRoundStats_Call) RunAndReturn added in v2.15.0

type ORM_WithDataSource_Call added in v2.15.0

type ORM_WithDataSource_Call struct {
	*mock.Call
}

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

func (*ORM_WithDataSource_Call) Return added in v2.15.0

func (*ORM_WithDataSource_Call) Run added in v2.15.0

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