mocks

package
v2.12.1-starknet-06212024 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 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) 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 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) 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 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) 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 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) 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 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) 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

Jump to

Keyboard shortcuts

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