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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BridgeAccessor added in v2.3.0

type BridgeAccessor struct {
	mock.Mock
}

BridgeAccessor is an autogenerated mock type for the BridgeAccessor type

func NewBridgeAccessor added in v2.3.0

func NewBridgeAccessor(t interface {
	mock.TestingT
	Cleanup(func())
}) *BridgeAccessor

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

func (*BridgeAccessor) NewExternalAdapterClient added in v2.3.0

func (_m *BridgeAccessor) NewExternalAdapterClient(_a0 context.Context) (functions.ExternalAdapterClient, error)

NewExternalAdapterClient provides a mock function with given fields: _a0

type BridgeAccessor_Expecter added in v2.15.0

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

func (*BridgeAccessor_Expecter) NewExternalAdapterClient added in v2.15.0

func (_e *BridgeAccessor_Expecter) NewExternalAdapterClient(_a0 interface{}) *BridgeAccessor_NewExternalAdapterClient_Call

NewExternalAdapterClient is a helper method to define mock.On call

  • _a0 context.Context

type BridgeAccessor_NewExternalAdapterClient_Call added in v2.15.0

type BridgeAccessor_NewExternalAdapterClient_Call struct {
	*mock.Call
}

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

func (*BridgeAccessor_NewExternalAdapterClient_Call) Return added in v2.15.0

func (*BridgeAccessor_NewExternalAdapterClient_Call) Run added in v2.15.0

func (*BridgeAccessor_NewExternalAdapterClient_Call) RunAndReturn added in v2.15.0

type ExternalAdapterClient added in v2.3.0

type ExternalAdapterClient struct {
	mock.Mock
}

ExternalAdapterClient is an autogenerated mock type for the ExternalAdapterClient type

func NewExternalAdapterClient added in v2.3.0

func NewExternalAdapterClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *ExternalAdapterClient

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

func (*ExternalAdapterClient) FetchEncryptedSecrets added in v2.3.0

func (_m *ExternalAdapterClient) FetchEncryptedSecrets(ctx context.Context, encryptedSecretsUrls []byte, requestId string, jobName string) ([]byte, []byte, error)

FetchEncryptedSecrets provides a mock function with given fields: ctx, encryptedSecretsUrls, requestId, jobName

func (*ExternalAdapterClient) RunComputation added in v2.3.0

func (_m *ExternalAdapterClient) RunComputation(ctx context.Context, requestId string, jobName string, subscriptionOwner string, subscriptionId uint64, flags functions.RequestFlags, nodeProvidedSecrets string, requestData *functions.RequestData) ([]byte, []byte, []string, error)

RunComputation provides a mock function with given fields: ctx, requestId, jobName, subscriptionOwner, subscriptionId, flags, nodeProvidedSecrets, requestData

type ExternalAdapterClient_Expecter added in v2.15.0

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

func (*ExternalAdapterClient_Expecter) FetchEncryptedSecrets added in v2.15.0

func (_e *ExternalAdapterClient_Expecter) FetchEncryptedSecrets(ctx interface{}, encryptedSecretsUrls interface{}, requestId interface{}, jobName interface{}) *ExternalAdapterClient_FetchEncryptedSecrets_Call

FetchEncryptedSecrets is a helper method to define mock.On call

  • ctx context.Context
  • encryptedSecretsUrls []byte
  • requestId string
  • jobName string

func (*ExternalAdapterClient_Expecter) RunComputation added in v2.15.0

func (_e *ExternalAdapterClient_Expecter) RunComputation(ctx interface{}, requestId interface{}, jobName interface{}, subscriptionOwner interface{}, subscriptionId interface{}, flags interface{}, nodeProvidedSecrets interface{}, requestData interface{}) *ExternalAdapterClient_RunComputation_Call

RunComputation is a helper method to define mock.On call

  • ctx context.Context
  • requestId string
  • jobName string
  • subscriptionOwner string
  • subscriptionId uint64
  • flags functions.RequestFlags
  • nodeProvidedSecrets string
  • requestData *functions.RequestData

type ExternalAdapterClient_FetchEncryptedSecrets_Call added in v2.15.0

type ExternalAdapterClient_FetchEncryptedSecrets_Call struct {
	*mock.Call
}

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

func (*ExternalAdapterClient_FetchEncryptedSecrets_Call) Return added in v2.15.0

func (*ExternalAdapterClient_FetchEncryptedSecrets_Call) Run added in v2.15.0

func (*ExternalAdapterClient_FetchEncryptedSecrets_Call) RunAndReturn added in v2.15.0

type ExternalAdapterClient_RunComputation_Call added in v2.15.0

type ExternalAdapterClient_RunComputation_Call struct {
	*mock.Call
}

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

func (*ExternalAdapterClient_RunComputation_Call) Return added in v2.15.0

func (_c *ExternalAdapterClient_RunComputation_Call) Return(userResult []byte, userError []byte, domains []string, err error) *ExternalAdapterClient_RunComputation_Call

func (*ExternalAdapterClient_RunComputation_Call) Run added in v2.15.0

func (_c *ExternalAdapterClient_RunComputation_Call) Run(run func(ctx context.Context, requestId string, jobName string, subscriptionOwner string, subscriptionId uint64, flags functions.RequestFlags, nodeProvidedSecrets string, requestData *functions.RequestData)) *ExternalAdapterClient_RunComputation_Call

func (*ExternalAdapterClient_RunComputation_Call) RunAndReturn added in v2.15.0

type FunctionsListener added in v2.8.0

type FunctionsListener struct {
	mock.Mock
}

FunctionsListener is an autogenerated mock type for the FunctionsListener type

func NewFunctionsListener added in v2.8.0

func NewFunctionsListener(t interface {
	mock.TestingT
	Cleanup(func())
}) *FunctionsListener

NewFunctionsListener creates a new instance of FunctionsListener. 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 (*FunctionsListener) Close added in v2.8.0

func (_m *FunctionsListener) Close() error

Close provides a mock function with given fields:

func (*FunctionsListener) EXPECT added in v2.15.0

func (*FunctionsListener) HandleOffchainRequest added in v2.8.0

func (_m *FunctionsListener) HandleOffchainRequest(ctx context.Context, request *functions.OffchainRequest) error

HandleOffchainRequest provides a mock function with given fields: ctx, request

func (*FunctionsListener) Start added in v2.8.0

func (_m *FunctionsListener) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

type FunctionsListener_Close_Call added in v2.15.0

type FunctionsListener_Close_Call struct {
	*mock.Call
}

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

func (*FunctionsListener_Close_Call) Return added in v2.15.0

func (*FunctionsListener_Close_Call) Run added in v2.15.0

func (*FunctionsListener_Close_Call) RunAndReturn added in v2.15.0

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

type FunctionsListener_Expecter added in v2.15.0

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

func (*FunctionsListener_Expecter) Close added in v2.15.0

Close is a helper method to define mock.On call

func (*FunctionsListener_Expecter) HandleOffchainRequest added in v2.15.0

func (_e *FunctionsListener_Expecter) HandleOffchainRequest(ctx interface{}, request interface{}) *FunctionsListener_HandleOffchainRequest_Call

HandleOffchainRequest is a helper method to define mock.On call

  • ctx context.Context
  • request *functions.OffchainRequest

func (*FunctionsListener_Expecter) Start added in v2.15.0

func (_e *FunctionsListener_Expecter) Start(_a0 interface{}) *FunctionsListener_Start_Call

Start is a helper method to define mock.On call

  • _a0 context.Context

type FunctionsListener_HandleOffchainRequest_Call added in v2.15.0

type FunctionsListener_HandleOffchainRequest_Call struct {
	*mock.Call
}

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

func (*FunctionsListener_HandleOffchainRequest_Call) Return added in v2.15.0

func (*FunctionsListener_HandleOffchainRequest_Call) Run added in v2.15.0

func (*FunctionsListener_HandleOffchainRequest_Call) RunAndReturn added in v2.15.0

type FunctionsListener_Start_Call added in v2.15.0

type FunctionsListener_Start_Call struct {
	*mock.Call
}

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

func (*FunctionsListener_Start_Call) Return added in v2.15.0

func (*FunctionsListener_Start_Call) Run added in v2.15.0

func (*FunctionsListener_Start_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) CreateRequest

func (_m *ORM) CreateRequest(ctx context.Context, request *functions.Request) error

CreateRequest provides a mock function with given fields: ctx, request

func (*ORM) EXPECT added in v2.15.0

func (_m *ORM) EXPECT() *ORM_Expecter

func (*ORM) FindById

func (_m *ORM) FindById(ctx context.Context, requestID functions.RequestID) (*functions.Request, error)

FindById provides a mock function with given fields: ctx, requestID

func (*ORM) FindOldestEntriesByState

func (_m *ORM) FindOldestEntriesByState(ctx context.Context, state functions.RequestState, limit uint32) ([]functions.Request, error)

FindOldestEntriesByState provides a mock function with given fields: ctx, state, limit

func (*ORM) PruneOldestRequests added in v2.3.0

func (_m *ORM) PruneOldestRequests(ctx context.Context, maxRequestsInDB uint32, batchSize uint32) (uint32, uint32, error)

PruneOldestRequests provides a mock function with given fields: ctx, maxRequestsInDB, batchSize

func (*ORM) SetConfirmed

func (_m *ORM) SetConfirmed(ctx context.Context, requestID functions.RequestID) error

SetConfirmed provides a mock function with given fields: ctx, requestID

func (*ORM) SetError

func (_m *ORM) SetError(ctx context.Context, requestID functions.RequestID, errorType functions.ErrType, computationError []byte, readyAt time.Time, readyForProcessing bool) error

SetError provides a mock function with given fields: ctx, requestID, errorType, computationError, readyAt, readyForProcessing

func (*ORM) SetFinalized

func (_m *ORM) SetFinalized(ctx context.Context, requestID functions.RequestID, reportedResult []byte, reportedError []byte) error

SetFinalized provides a mock function with given fields: ctx, requestID, reportedResult, reportedError

func (*ORM) SetResult

func (_m *ORM) SetResult(ctx context.Context, requestID functions.RequestID, computationResult []byte, readyAt time.Time) error

SetResult provides a mock function with given fields: ctx, requestID, computationResult, readyAt

func (*ORM) TimeoutExpiredResults

func (_m *ORM) TimeoutExpiredResults(ctx context.Context, cutoff time.Time, limit uint32) ([]functions.RequestID, error)

TimeoutExpiredResults provides a mock function with given fields: ctx, cutoff, limit

type ORM_CreateRequest_Call added in v2.15.0

type ORM_CreateRequest_Call struct {
	*mock.Call
}

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

func (*ORM_CreateRequest_Call) Return added in v2.15.0

func (*ORM_CreateRequest_Call) Run added in v2.15.0

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

func (_e *ORM_Expecter) CreateRequest(ctx interface{}, request interface{}) *ORM_CreateRequest_Call

CreateRequest is a helper method to define mock.On call

  • ctx context.Context
  • request *functions.Request

func (*ORM_Expecter) FindById added in v2.15.0

func (_e *ORM_Expecter) FindById(ctx interface{}, requestID interface{}) *ORM_FindById_Call

FindById is a helper method to define mock.On call

  • ctx context.Context
  • requestID functions.RequestID

func (*ORM_Expecter) FindOldestEntriesByState added in v2.15.0

func (_e *ORM_Expecter) FindOldestEntriesByState(ctx interface{}, state interface{}, limit interface{}) *ORM_FindOldestEntriesByState_Call

FindOldestEntriesByState is a helper method to define mock.On call

  • ctx context.Context
  • state functions.RequestState
  • limit uint32

func (*ORM_Expecter) PruneOldestRequests added in v2.15.0

func (_e *ORM_Expecter) PruneOldestRequests(ctx interface{}, maxRequestsInDB interface{}, batchSize interface{}) *ORM_PruneOldestRequests_Call

PruneOldestRequests is a helper method to define mock.On call

  • ctx context.Context
  • maxRequestsInDB uint32
  • batchSize uint32

func (*ORM_Expecter) SetConfirmed added in v2.15.0

func (_e *ORM_Expecter) SetConfirmed(ctx interface{}, requestID interface{}) *ORM_SetConfirmed_Call

SetConfirmed is a helper method to define mock.On call

  • ctx context.Context
  • requestID functions.RequestID

func (*ORM_Expecter) SetError added in v2.15.0

func (_e *ORM_Expecter) SetError(ctx interface{}, requestID interface{}, errorType interface{}, computationError interface{}, readyAt interface{}, readyForProcessing interface{}) *ORM_SetError_Call

SetError is a helper method to define mock.On call

  • ctx context.Context
  • requestID functions.RequestID
  • errorType functions.ErrType
  • computationError []byte
  • readyAt time.Time
  • readyForProcessing bool

func (*ORM_Expecter) SetFinalized added in v2.15.0

func (_e *ORM_Expecter) SetFinalized(ctx interface{}, requestID interface{}, reportedResult interface{}, reportedError interface{}) *ORM_SetFinalized_Call

SetFinalized is a helper method to define mock.On call

  • ctx context.Context
  • requestID functions.RequestID
  • reportedResult []byte
  • reportedError []byte

func (*ORM_Expecter) SetResult added in v2.15.0

func (_e *ORM_Expecter) SetResult(ctx interface{}, requestID interface{}, computationResult interface{}, readyAt interface{}) *ORM_SetResult_Call

SetResult is a helper method to define mock.On call

  • ctx context.Context
  • requestID functions.RequestID
  • computationResult []byte
  • readyAt time.Time

func (*ORM_Expecter) TimeoutExpiredResults added in v2.15.0

func (_e *ORM_Expecter) TimeoutExpiredResults(ctx interface{}, cutoff interface{}, limit interface{}) *ORM_TimeoutExpiredResults_Call

TimeoutExpiredResults is a helper method to define mock.On call

  • ctx context.Context
  • cutoff time.Time
  • limit uint32

type ORM_FindById_Call added in v2.15.0

type ORM_FindById_Call struct {
	*mock.Call
}

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

func (*ORM_FindById_Call) Return added in v2.15.0

func (*ORM_FindById_Call) Run added in v2.15.0

func (_c *ORM_FindById_Call) Run(run func(ctx context.Context, requestID functions.RequestID)) *ORM_FindById_Call

func (*ORM_FindById_Call) RunAndReturn added in v2.15.0

type ORM_FindOldestEntriesByState_Call added in v2.15.0

type ORM_FindOldestEntriesByState_Call struct {
	*mock.Call
}

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

func (*ORM_FindOldestEntriesByState_Call) Return added in v2.15.0

func (*ORM_FindOldestEntriesByState_Call) Run added in v2.15.0

func (*ORM_FindOldestEntriesByState_Call) RunAndReturn added in v2.15.0

type ORM_PruneOldestRequests_Call added in v2.15.0

type ORM_PruneOldestRequests_Call struct {
	*mock.Call
}

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

func (*ORM_PruneOldestRequests_Call) Return added in v2.15.0

func (*ORM_PruneOldestRequests_Call) Run added in v2.15.0

func (_c *ORM_PruneOldestRequests_Call) Run(run func(ctx context.Context, maxRequestsInDB uint32, batchSize uint32)) *ORM_PruneOldestRequests_Call

func (*ORM_PruneOldestRequests_Call) RunAndReturn added in v2.15.0

type ORM_SetConfirmed_Call added in v2.15.0

type ORM_SetConfirmed_Call struct {
	*mock.Call
}

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

func (*ORM_SetConfirmed_Call) Return added in v2.15.0

func (*ORM_SetConfirmed_Call) Run added in v2.15.0

func (*ORM_SetConfirmed_Call) RunAndReturn added in v2.15.0

type ORM_SetError_Call added in v2.15.0

type ORM_SetError_Call struct {
	*mock.Call
}

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

func (*ORM_SetError_Call) Return added in v2.15.0

func (_c *ORM_SetError_Call) Return(_a0 error) *ORM_SetError_Call

func (*ORM_SetError_Call) Run added in v2.15.0

func (_c *ORM_SetError_Call) Run(run func(ctx context.Context, requestID functions.RequestID, errorType functions.ErrType, computationError []byte, readyAt time.Time, readyForProcessing bool)) *ORM_SetError_Call

func (*ORM_SetError_Call) RunAndReturn added in v2.15.0

type ORM_SetFinalized_Call added in v2.15.0

type ORM_SetFinalized_Call struct {
	*mock.Call
}

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

func (*ORM_SetFinalized_Call) Return added in v2.15.0

func (*ORM_SetFinalized_Call) Run added in v2.15.0

func (_c *ORM_SetFinalized_Call) Run(run func(ctx context.Context, requestID functions.RequestID, reportedResult []byte, reportedError []byte)) *ORM_SetFinalized_Call

func (*ORM_SetFinalized_Call) RunAndReturn added in v2.15.0

type ORM_SetResult_Call added in v2.15.0

type ORM_SetResult_Call struct {
	*mock.Call
}

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

func (*ORM_SetResult_Call) Return added in v2.15.0

func (_c *ORM_SetResult_Call) Return(_a0 error) *ORM_SetResult_Call

func (*ORM_SetResult_Call) Run added in v2.15.0

func (_c *ORM_SetResult_Call) Run(run func(ctx context.Context, requestID functions.RequestID, computationResult []byte, readyAt time.Time)) *ORM_SetResult_Call

func (*ORM_SetResult_Call) RunAndReturn added in v2.15.0

type ORM_TimeoutExpiredResults_Call added in v2.15.0

type ORM_TimeoutExpiredResults_Call struct {
	*mock.Call
}

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

func (*ORM_TimeoutExpiredResults_Call) Return added in v2.15.0

func (*ORM_TimeoutExpiredResults_Call) Run added in v2.15.0

func (*ORM_TimeoutExpiredResults_Call) RunAndReturn added in v2.15.0

type OffchainTransmitter added in v2.8.0

type OffchainTransmitter struct {
	mock.Mock
}

OffchainTransmitter is an autogenerated mock type for the OffchainTransmitter type

func NewOffchainTransmitter added in v2.8.0

func NewOffchainTransmitter(t interface {
	mock.TestingT
	Cleanup(func())
}) *OffchainTransmitter

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

func (*OffchainTransmitter) ReportChannel added in v2.8.0

func (_m *OffchainTransmitter) ReportChannel() chan *functions.OffchainResponse

ReportChannel provides a mock function with given fields:

func (*OffchainTransmitter) TransmitReport added in v2.8.0

func (_m *OffchainTransmitter) TransmitReport(ctx context.Context, report *functions.OffchainResponse) error

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

type OffchainTransmitter_Expecter added in v2.15.0

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

func (*OffchainTransmitter_Expecter) ReportChannel added in v2.15.0

ReportChannel is a helper method to define mock.On call

func (*OffchainTransmitter_Expecter) TransmitReport added in v2.15.0

func (_e *OffchainTransmitter_Expecter) TransmitReport(ctx interface{}, report interface{}) *OffchainTransmitter_TransmitReport_Call

TransmitReport is a helper method to define mock.On call

  • ctx context.Context
  • report *functions.OffchainResponse

type OffchainTransmitter_ReportChannel_Call added in v2.15.0

type OffchainTransmitter_ReportChannel_Call struct {
	*mock.Call
}

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

func (*OffchainTransmitter_ReportChannel_Call) Return added in v2.15.0

func (*OffchainTransmitter_ReportChannel_Call) Run added in v2.15.0

func (*OffchainTransmitter_ReportChannel_Call) RunAndReturn added in v2.15.0

type OffchainTransmitter_TransmitReport_Call added in v2.15.0

type OffchainTransmitter_TransmitReport_Call struct {
	*mock.Call
}

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

func (*OffchainTransmitter_TransmitReport_Call) Return added in v2.15.0

func (*OffchainTransmitter_TransmitReport_Call) Run added in v2.15.0

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