mocks

package
v0.10.16-rc0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	mock.Mock
}

Config is an autogenerated mock type for the Config type

func (*Config) BridgeResponseURL

func (_m *Config) BridgeResponseURL() *url.URL

BridgeResponseURL provides a mock function with given fields:

func (*Config) DatabaseMaximumTxDuration

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

DatabaseMaximumTxDuration provides a mock function with given fields:

func (*Config) DatabaseURL

func (_m *Config) DatabaseURL() url.URL

DatabaseURL provides a mock function with given fields:

func (*Config) DefaultHTTPAllowUnrestrictedNetworkAccess

func (_m *Config) DefaultHTTPAllowUnrestrictedNetworkAccess() bool

DefaultHTTPAllowUnrestrictedNetworkAccess provides a mock function with given fields:

func (*Config) DefaultHTTPLimit

func (_m *Config) DefaultHTTPLimit() int64

DefaultHTTPLimit provides a mock function with given fields:

func (*Config) DefaultHTTPTimeout

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

DefaultHTTPTimeout provides a mock function with given fields:

func (*Config) DefaultMaxHTTPAttempts

func (_m *Config) DefaultMaxHTTPAttempts() uint

DefaultMaxHTTPAttempts provides a mock function with given fields:

func (*Config) EthGasLimitDefault added in v0.10.9

func (_m *Config) EthGasLimitDefault() uint64

EthGasLimitDefault provides a mock function with given fields:

func (*Config) EthMaxQueuedTransactions added in v0.10.9

func (_m *Config) EthMaxQueuedTransactions() uint64

EthMaxQueuedTransactions provides a mock function with given fields:

func (*Config) JobPipelineMaxRunDuration added in v0.9.10

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

JobPipelineMaxRunDuration provides a mock function with given fields:

func (*Config) JobPipelineReaperInterval

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

JobPipelineReaperInterval provides a mock function with given fields:

func (*Config) JobPipelineReaperThreshold

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

JobPipelineReaperThreshold provides a mock function with given fields:

func (*Config) TriggerFallbackDBPollInterval added in v0.9.6

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

TriggerFallbackDBPollInterval provides a mock function with given fields:

type ETHKeyStore added in v0.10.11

type ETHKeyStore struct {
	mock.Mock
}

ETHKeyStore is an autogenerated mock type for the ETHKeyStore type

func (*ETHKeyStore) GetRoundRobinAddress added in v0.10.11

func (_m *ETHKeyStore) GetRoundRobinAddress(addrs ...common.Address) (common.Address, error)

GetRoundRobinAddress provides a mock function with given fields: addrs

type KeyStore added in v0.10.9

type KeyStore struct {
	mock.Mock
}

KeyStore is an autogenerated mock type for the KeyStore type

func (*KeyStore) GetRoundRobinAddress added in v0.10.9

func (_m *KeyStore) GetRoundRobinAddress(addrs ...common.Address) (common.Address, error)

GetRoundRobinAddress provides a mock function with given fields: addrs

type ORM

type ORM struct {
	mock.Mock
}

ORM is an autogenerated mock type for the ORM type

func (*ORM) CreateRun

func (_m *ORM) CreateRun(db *gorm.DB, run *pipeline.Run) error

CreateRun provides a mock function with given fields: db, run

func (*ORM) CreateSpec

func (_m *ORM) CreateSpec(ctx context.Context, tx *gorm.DB, _a2 pipeline.Pipeline, maxTaskTimeout models.Interval) (int32, error)

CreateSpec provides a mock function with given fields: ctx, tx, _a2, maxTaskTimeout

func (*ORM) DB added in v0.9.10

func (_m *ORM) DB() *gorm.DB

DB provides a mock function with given fields:

func (*ORM) DeleteRunsOlderThan

func (_m *ORM) DeleteRunsOlderThan(threshold time.Duration) error

DeleteRunsOlderThan provides a mock function with given fields: threshold

func (*ORM) FindRun added in v0.10.3

func (_m *ORM) FindRun(id int64) (pipeline.Run, error)

FindRun provides a mock function with given fields: id

func (*ORM) GetAllRuns added in v0.10.8

func (_m *ORM) GetAllRuns() ([]pipeline.Run, error)

GetAllRuns provides a mock function with given fields:

func (*ORM) GetUnfinishedRuns added in v0.10.10

func (_m *ORM) GetUnfinishedRuns(now time.Time, fn func(pipeline.Run) error) error

GetUnfinishedRuns provides a mock function with given fields: now, fn

func (*ORM) InsertFinishedRun added in v0.10.5

func (_m *ORM) InsertFinishedRun(db *gorm.DB, run pipeline.Run, trrs []pipeline.TaskRunResult, saveSuccessfulTaskRuns bool) (int64, error)

InsertFinishedRun provides a mock function with given fields: db, run, trrs, saveSuccessfulTaskRuns

func (*ORM) StoreRun added in v0.10.10

func (_m *ORM) StoreRun(db *sql.DB, run *pipeline.Run) (bool, error)

StoreRun provides a mock function with given fields: db, run

func (*ORM) UpdateTaskRunResult added in v0.10.10

func (_m *ORM) UpdateTaskRunResult(db *sql.DB, taskID uuid.UUID, result interface{}) (pipeline.Run, bool, error)

UpdateTaskRunResult provides a mock function with given fields: db, taskID, result

type PipelineParamUnmarshaler added in v0.10.8

type PipelineParamUnmarshaler struct {
	mock.Mock
}

PipelineParamUnmarshaler is an autogenerated mock type for the PipelineParamUnmarshaler type

func (*PipelineParamUnmarshaler) UnmarshalPipelineParam added in v0.10.8

func (_m *PipelineParamUnmarshaler) UnmarshalPipelineParam(val interface{}) error

UnmarshalPipelineParam provides a mock function with given fields: val

type Runner added in v0.10.3

type Runner struct {
	mock.Mock
}

Runner is an autogenerated mock type for the Runner type

func (*Runner) Close added in v0.10.3

func (_m *Runner) Close() error

Close provides a mock function with given fields:

func (*Runner) ExecuteAndInsertFinishedRun added in v0.10.5

func (_m *Runner) ExecuteAndInsertFinishedRun(ctx context.Context, spec pipeline.Spec, vars pipeline.Vars, l logger.Logger, saveSuccessfulTaskRuns bool) (int64, pipeline.FinalResult, error)

ExecuteAndInsertFinishedRun provides a mock function with given fields: ctx, spec, vars, l, saveSuccessfulTaskRuns

func (*Runner) ExecuteRun added in v0.10.3

ExecuteRun provides a mock function with given fields: ctx, spec, vars, l

func (*Runner) Healthy added in v0.10.8

func (_m *Runner) Healthy() error

Healthy provides a mock function with given fields:

func (*Runner) InsertFinishedRun added in v0.10.5

func (_m *Runner) InsertFinishedRun(db *gorm.DB, run pipeline.Run, trrs pipeline.TaskRunResults, saveSuccessfulTaskRuns bool) (int64, error)

InsertFinishedRun provides a mock function with given fields: db, run, trrs, saveSuccessfulTaskRuns

func (*Runner) Ready added in v0.10.8

func (_m *Runner) Ready() error

Ready provides a mock function with given fields:

func (*Runner) Run added in v0.10.10

func (_m *Runner) Run(ctx context.Context, run *pipeline.Run, l logger.Logger, saveSuccessfulTaskRuns bool) (bool, error)

Run provides a mock function with given fields: ctx, run, l, saveSuccessfulTaskRuns

func (*Runner) Start added in v0.10.3

func (_m *Runner) Start() error

Start provides a mock function with given fields:

func (*Runner) TestInsertFinishedRun added in v0.10.8

func (_m *Runner) TestInsertFinishedRun(db *gorm.DB, jobID int32, jobName string, jobType string, specID int32) (int64, error)

TestInsertFinishedRun provides a mock function with given fields: db, jobID, jobName, jobType, specID

type TxManager added in v0.10.9

type TxManager struct {
	mock.Mock
}

TxManager is an autogenerated mock type for the TxManager type

func (*TxManager) CreateEthTransaction added in v0.10.9

func (_m *TxManager) CreateEthTransaction(db *gorm.DB, fromAddress common.Address, toAddress common.Address, payload []byte, gasLimit uint64, meta interface{}, strategy bulletprooftxmanager.TxStrategy) (bulletprooftxmanager.EthTx, error)

CreateEthTransaction provides a mock function with given fields: db, fromAddress, toAddress, payload, gasLimit, meta, strategy

Jump to

Keyboard shortcuts

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