mocks

package
v1.8.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.10.10

type Config struct {
	mock.Mock
}

Config is an autogenerated mock type for the Config type

func NewConfig added in v1.6.0

func NewConfig(t mockConstructorTestingTNewConfig) *Config

NewConfig creates a new instance of Config. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Config) DefaultHTTPTimeout added in v0.10.11

func (_m *Config) DefaultHTTPTimeout() models.Duration

DefaultHTTPTimeout provides a mock function with given fields:

func (*Config) Dev added in v0.10.11

func (_m *Config) Dev() bool

Dev provides a mock function with given fields:

func (*Config) FeatureOffchainReporting added in v0.10.11

func (_m *Config) FeatureOffchainReporting() bool

FeatureOffchainReporting provides a mock function with given fields:

func (*Config) LogSQL added in v1.1.0

func (_m *Config) LogSQL() bool

LogSQL provides a mock function with given fields:

func (*Config) OCRBlockchainTimeout added in v0.10.11

func (_m *Config) OCRBlockchainTimeout() time.Duration

OCRBlockchainTimeout provides a mock function with given fields:

func (*Config) OCRContractConfirmations added in v0.10.11

func (_m *Config) OCRContractConfirmations() uint16

OCRContractConfirmations provides a mock function with given fields:

func (*Config) OCRContractPollInterval added in v0.10.11

func (_m *Config) OCRContractPollInterval() time.Duration

OCRContractPollInterval provides a mock function with given fields:

func (*Config) OCRContractSubscribeInterval added in v0.10.11

func (_m *Config) OCRContractSubscribeInterval() time.Duration

OCRContractSubscribeInterval provides a mock function with given fields:

func (*Config) OCRContractTransmitterTransmitTimeout added in v0.10.11

func (_m *Config) OCRContractTransmitterTransmitTimeout() time.Duration

OCRContractTransmitterTransmitTimeout provides a mock function with given fields:

func (*Config) OCRDatabaseTimeout added in v0.10.11

func (_m *Config) OCRDatabaseTimeout() time.Duration

OCRDatabaseTimeout provides a mock function with given fields:

func (*Config) OCRObservationGracePeriod added in v0.10.11

func (_m *Config) OCRObservationGracePeriod() time.Duration

OCRObservationGracePeriod provides a mock function with given fields:

func (*Config) OCRObservationTimeout added in v0.10.11

func (_m *Config) OCRObservationTimeout() time.Duration

OCRObservationTimeout provides a mock function with given fields:

type ConnectionsManager added in v1.0.0

type ConnectionsManager struct {
	mock.Mock
}

ConnectionsManager is an autogenerated mock type for the ConnectionsManager type

func NewConnectionsManager added in v1.6.0

func NewConnectionsManager(t mockConstructorTestingTNewConnectionsManager) *ConnectionsManager

NewConnectionsManager creates a new instance of ConnectionsManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ConnectionsManager) Close added in v1.0.0

func (_m *ConnectionsManager) Close()

Close provides a mock function with given fields:

func (*ConnectionsManager) Connect added in v1.0.0

func (_m *ConnectionsManager) Connect(opts feeds.ConnectOpts)

Connect provides a mock function with given fields: opts

func (*ConnectionsManager) Disconnect added in v1.0.0

func (_m *ConnectionsManager) Disconnect(id int64) error

Disconnect provides a mock function with given fields: id

func (*ConnectionsManager) GetClient added in v1.0.0

func (_m *ConnectionsManager) GetClient(id int64) (proto.FeedsManagerClient, error)

GetClient provides a mock function with given fields: id

func (*ConnectionsManager) IsConnected added in v1.0.0

func (_m *ConnectionsManager) IsConnected(id int64) bool

IsConnected provides a mock function with given fields: id

type FeedsManagerClient added in v0.10.10

type FeedsManagerClient struct {
	mock.Mock
}

FeedsManagerClient is an autogenerated mock type for the FeedsManagerClient type

func NewFeedsManagerClient added in v1.6.0

func NewFeedsManagerClient(t mockConstructorTestingTNewFeedsManagerClient) *FeedsManagerClient

NewFeedsManagerClient creates a new instance of FeedsManagerClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*FeedsManagerClient) ApprovedJob added in v0.10.10

ApprovedJob provides a mock function with given fields: ctx, in

func (*FeedsManagerClient) CancelledJob added in v1.1.0

CancelledJob provides a mock function with given fields: ctx, in

func (*FeedsManagerClient) RejectedJob added in v0.10.10

RejectedJob provides a mock function with given fields: ctx, in

func (*FeedsManagerClient) UpdateNode added in v0.10.10

UpdateNode provides a mock function with given fields: ctx, in

type ORM

type ORM struct {
	mock.Mock
}

ORM is an autogenerated mock type for the ORM type

func NewORM added in v1.6.0

func NewORM(t mockConstructorTestingTNewORM) *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.

func (*ORM) ApproveSpec added in v1.2.0

func (_m *ORM) ApproveSpec(id int64, externalJobID uuid.UUID, qopts ...pg.QOpt) error

ApproveSpec provides a mock function with given fields: id, externalJobID, qopts

func (*ORM) CancelSpec added in v1.2.0

func (_m *ORM) CancelSpec(id int64, qopts ...pg.QOpt) error

CancelSpec provides a mock function with given fields: id, qopts

func (*ORM) CountJobProposals added in v0.10.9

func (_m *ORM) CountJobProposals() (int64, error)

CountJobProposals provides a mock function with given fields:

func (*ORM) CountManagers

func (_m *ORM) CountManagers() (int64, error)

CountManagers provides a mock function with given fields:

func (*ORM) CreateBatchChainConfig added in v1.5.0

func (_m *ORM) CreateBatchChainConfig(cfgs []feeds.ChainConfig, qopts ...pg.QOpt) ([]int64, error)

CreateBatchChainConfig provides a mock function with given fields: cfgs, qopts

func (*ORM) CreateChainConfig added in v1.5.0

func (_m *ORM) CreateChainConfig(cfg feeds.ChainConfig, qopts ...pg.QOpt) (int64, error)

CreateChainConfig provides a mock function with given fields: cfg, qopts

func (*ORM) CreateJobProposal added in v0.10.9

func (_m *ORM) CreateJobProposal(jp *feeds.JobProposal) (int64, error)

CreateJobProposal provides a mock function with given fields: jp

func (*ORM) CreateManager

func (_m *ORM) CreateManager(ms *feeds.FeedsManager, qopts ...pg.QOpt) (int64, error)

CreateManager provides a mock function with given fields: ms, qopts

func (*ORM) CreateSpec added in v1.2.0

func (_m *ORM) CreateSpec(spec feeds.JobProposalSpec, qopts ...pg.QOpt) (int64, error)

CreateSpec provides a mock function with given fields: spec, qopts

func (*ORM) DeleteChainConfig added in v1.5.0

func (_m *ORM) DeleteChainConfig(id int64) (int64, error)

DeleteChainConfig provides a mock function with given fields: id

func (*ORM) ExistsSpecByJobProposalIDAndVersion added in v1.2.0

func (_m *ORM) ExistsSpecByJobProposalIDAndVersion(jpID int64, version int32, qopts ...pg.QOpt) (bool, error)

ExistsSpecByJobProposalIDAndVersion provides a mock function with given fields: jpID, version, qopts

func (*ORM) GetChainConfig added in v1.5.0

func (_m *ORM) GetChainConfig(id int64) (*feeds.ChainConfig, error)

GetChainConfig provides a mock function with given fields: id

func (*ORM) GetJobProposal added in v0.10.9

func (_m *ORM) GetJobProposal(id int64, qopts ...pg.QOpt) (*feeds.JobProposal, error)

GetJobProposal provides a mock function with given fields: id, qopts

func (*ORM) GetJobProposalByRemoteUUID added in v1.0.0

func (_m *ORM) GetJobProposalByRemoteUUID(_a0 uuid.UUID) (*feeds.JobProposal, error)

GetJobProposalByRemoteUUID provides a mock function with given fields: _a0

func (*ORM) GetLatestSpec added in v1.5.0

func (_m *ORM) GetLatestSpec(jpID int64) (*feeds.JobProposalSpec, error)

GetLatestSpec provides a mock function with given fields: jpID

func (*ORM) GetManager

func (_m *ORM) GetManager(id int64) (*feeds.FeedsManager, error)

GetManager provides a mock function with given fields: id

func (*ORM) GetSpec added in v1.2.0

func (_m *ORM) GetSpec(id int64, qopts ...pg.QOpt) (*feeds.JobProposalSpec, error)

GetSpec provides a mock function with given fields: id, qopts

func (*ORM) IsJobManaged added in v1.1.0

func (_m *ORM) IsJobManaged(jobID int64, qopts ...pg.QOpt) (bool, error)

IsJobManaged provides a mock function with given fields: jobID, qopts

func (*ORM) ListChainConfigsByManagerIDs added in v1.5.0

func (_m *ORM) ListChainConfigsByManagerIDs(mgrIDs []int64) ([]feeds.ChainConfig, error)

ListChainConfigsByManagerIDs provides a mock function with given fields: mgrIDs

func (*ORM) ListJobProposals added in v0.10.9

func (_m *ORM) ListJobProposals() ([]feeds.JobProposal, error)

ListJobProposals provides a mock function with given fields:

func (*ORM) ListJobProposalsByManagersIDs added in v1.2.0

func (_m *ORM) ListJobProposalsByManagersIDs(ids []int64, qopts ...pg.QOpt) ([]feeds.JobProposal, error)

ListJobProposalsByManagersIDs provides a mock function with given fields: ids, qopts

func (*ORM) ListManagers

func (_m *ORM) ListManagers() ([]feeds.FeedsManager, error)

ListManagers provides a mock function with given fields:

func (*ORM) ListManagersByIDs added in v1.2.0

func (_m *ORM) ListManagersByIDs(ids []int64) ([]feeds.FeedsManager, error)

ListManagersByIDs provides a mock function with given fields: ids

func (*ORM) ListSpecsByJobProposalIDs added in v1.2.0

func (_m *ORM) ListSpecsByJobProposalIDs(ids []int64, qopts ...pg.QOpt) ([]feeds.JobProposalSpec, error)

ListSpecsByJobProposalIDs provides a mock function with given fields: ids, qopts

func (*ORM) RejectSpec added in v1.2.0

func (_m *ORM) RejectSpec(id int64, qopts ...pg.QOpt) error

RejectSpec provides a mock function with given fields: id, qopts

func (*ORM) UpdateChainConfig added in v1.5.0

func (_m *ORM) UpdateChainConfig(cfg feeds.ChainConfig) (int64, error)

UpdateChainConfig provides a mock function with given fields: cfg

func (*ORM) UpdateJobProposalStatus added in v0.10.11

func (_m *ORM) UpdateJobProposalStatus(id int64, status feeds.JobProposalStatus, qopts ...pg.QOpt) error

UpdateJobProposalStatus provides a mock function with given fields: id, status, qopts

func (*ORM) UpdateManager added in v1.0.0

func (_m *ORM) UpdateManager(mgr feeds.FeedsManager, qopts ...pg.QOpt) error

UpdateManager provides a mock function with given fields: mgr, qopts

func (*ORM) UpdateSpecDefinition added in v1.2.0

func (_m *ORM) UpdateSpecDefinition(id int64, spec string, qopts ...pg.QOpt) error

UpdateSpecDefinition provides a mock function with given fields: id, spec, qopts

func (*ORM) UpsertJobProposal added in v1.0.0

func (_m *ORM) UpsertJobProposal(jp *feeds.JobProposal, qopts ...pg.QOpt) (int64, error)

UpsertJobProposal provides a mock function with given fields: jp, qopts

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService added in v1.6.0

func NewService(t mockConstructorTestingTNewService) *Service

NewService creates a new instance of Service. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Service) ApproveSpec added in v1.2.0

func (_m *Service) ApproveSpec(ctx context.Context, id int64, force bool) error

ApproveSpec provides a mock function with given fields: ctx, id, force

func (*Service) CancelSpec added in v1.2.0

func (_m *Service) CancelSpec(ctx context.Context, id int64) error

CancelSpec provides a mock function with given fields: ctx, id

func (*Service) Close added in v0.10.9

func (_m *Service) Close() error

Close provides a mock function with given fields:

func (*Service) CountManagers

func (_m *Service) CountManagers() (int64, error)

CountManagers provides a mock function with given fields:

func (*Service) CreateChainConfig added in v1.5.0

func (_m *Service) CreateChainConfig(cfg feeds.ChainConfig) (int64, error)

CreateChainConfig provides a mock function with given fields: cfg

func (*Service) DeleteChainConfig added in v1.5.0

func (_m *Service) DeleteChainConfig(id int64) (int64, error)

DeleteChainConfig provides a mock function with given fields: id

func (*Service) GetChainConfig added in v1.5.0

func (_m *Service) GetChainConfig(id int64) (*feeds.ChainConfig, error)

GetChainConfig provides a mock function with given fields: id

func (*Service) GetJobProposal added in v0.10.11

func (_m *Service) GetJobProposal(id int64) (*feeds.JobProposal, error)

GetJobProposal provides a mock function with given fields: id

func (*Service) GetManager

func (_m *Service) GetManager(id int64) (*feeds.FeedsManager, error)

GetManager provides a mock function with given fields: id

func (*Service) GetSpec added in v1.2.0

func (_m *Service) GetSpec(id int64) (*feeds.JobProposalSpec, error)

GetSpec provides a mock function with given fields: id

func (*Service) IsJobManaged added in v1.1.0

func (_m *Service) IsJobManaged(ctx context.Context, jobID int64) (bool, error)

IsJobManaged provides a mock function with given fields: ctx, jobID

func (*Service) ListChainConfigsByManagerIDs added in v1.5.0

func (_m *Service) ListChainConfigsByManagerIDs(mgrIDs []int64) ([]feeds.ChainConfig, error)

ListChainConfigsByManagerIDs provides a mock function with given fields: mgrIDs

func (*Service) ListJobProposals added in v0.10.11

func (_m *Service) ListJobProposals() ([]feeds.JobProposal, error)

ListJobProposals provides a mock function with given fields:

func (*Service) ListJobProposalsByManagersIDs added in v1.2.0

func (_m *Service) ListJobProposalsByManagersIDs(ids []int64) ([]feeds.JobProposal, error)

ListJobProposalsByManagersIDs provides a mock function with given fields: ids

func (*Service) ListManagers

func (_m *Service) ListManagers() ([]feeds.FeedsManager, error)

ListManagers provides a mock function with given fields:

func (*Service) ListManagersByIDs added in v1.2.0

func (_m *Service) ListManagersByIDs(ids []int64) ([]feeds.FeedsManager, error)

ListManagersByIDs provides a mock function with given fields: ids

func (*Service) ListSpecsByJobProposalIDs added in v1.2.0

func (_m *Service) ListSpecsByJobProposalIDs(ids []int64) ([]feeds.JobProposalSpec, error)

ListSpecsByJobProposalIDs provides a mock function with given fields: ids

func (*Service) ProposeJob added in v1.0.0

func (_m *Service) ProposeJob(ctx context.Context, args *feeds.ProposeJobArgs) (int64, error)

ProposeJob provides a mock function with given fields: ctx, args

func (*Service) RegisterManager

func (_m *Service) RegisterManager(params feeds.RegisterManagerParams) (int64, error)

RegisterManager provides a mock function with given fields: params

func (*Service) RejectSpec added in v1.2.0

func (_m *Service) RejectSpec(ctx context.Context, id int64) error

RejectSpec provides a mock function with given fields: ctx, id

func (*Service) Start added in v0.10.9

func (_m *Service) Start() error

Start provides a mock function with given fields:

func (*Service) SyncNodeInfo added in v0.10.10

func (_m *Service) SyncNodeInfo(id int64) error

SyncNodeInfo provides a mock function with given fields: id

func (*Service) Unsafe_SetConnectionsManager added in v1.0.0

func (_m *Service) Unsafe_SetConnectionsManager(_a0 feeds.ConnectionsManager)

Unsafe_SetConnectionsManager provides a mock function with given fields: _a0

func (*Service) UpdateChainConfig added in v1.5.0

func (_m *Service) UpdateChainConfig(cfg feeds.ChainConfig) (int64, error)

UpdateChainConfig provides a mock function with given fields: cfg

func (*Service) UpdateManager added in v1.2.0

func (_m *Service) UpdateManager(ctx context.Context, mgr feeds.FeedsManager) error

UpdateManager provides a mock function with given fields: ctx, mgr

func (*Service) UpdateSpecDefinition added in v1.2.0

func (_m *Service) UpdateSpecDefinition(ctx context.Context, id int64, spec string) error

UpdateSpecDefinition provides a mock function with given fields: ctx, id, spec

Jump to

Keyboard shortcuts

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