mocks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 NewConfig

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

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

BlockEmissionIdleWarningThreshold provides a mock function with given fields:

func (*Config) EvmFinalityDepth

func (_m *Config) EvmFinalityDepth() uint32

EvmFinalityDepth provides a mock function with given fields:

func (*Config) EvmHeadTrackerHistoryDepth

func (_m *Config) EvmHeadTrackerHistoryDepth() uint32

EvmHeadTrackerHistoryDepth provides a mock function with given fields:

func (*Config) EvmHeadTrackerMaxBufferSize

func (_m *Config) EvmHeadTrackerMaxBufferSize() uint32

EvmHeadTrackerMaxBufferSize provides a mock function with given fields:

func (*Config) EvmHeadTrackerSamplingInterval

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

EvmHeadTrackerSamplingInterval provides a mock function with given fields:

type HeadBroadcaster

type HeadBroadcaster struct {
	mock.Mock
}

HeadBroadcaster is an autogenerated mock type for the HeadBroadcaster type

func NewHeadBroadcaster

func NewHeadBroadcaster(t mockConstructorTestingTNewHeadBroadcaster) *HeadBroadcaster

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

func (*HeadBroadcaster) BroadcastNewLongestChain

func (_m *HeadBroadcaster) BroadcastNewLongestChain(head *types.Head)

BroadcastNewLongestChain provides a mock function with given fields: head

func (*HeadBroadcaster) Close

func (_m *HeadBroadcaster) Close() error

Close provides a mock function with given fields:

func (*HeadBroadcaster) HealthReport

func (_m *HeadBroadcaster) HealthReport() map[string]error

HealthReport provides a mock function with given fields:

func (*HeadBroadcaster) Healthy

func (_m *HeadBroadcaster) Healthy() error

Healthy provides a mock function with given fields:

func (*HeadBroadcaster) Name

func (_m *HeadBroadcaster) Name() string

Name provides a mock function with given fields:

func (*HeadBroadcaster) Ready

func (_m *HeadBroadcaster) Ready() error

Ready provides a mock function with given fields:

func (*HeadBroadcaster) Start

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

Start provides a mock function with given fields: _a0

func (*HeadBroadcaster) Subscribe

func (_m *HeadBroadcaster) Subscribe(callback headtrackertypes.HeadTrackable) (*types.Head, func())

Subscribe provides a mock function with given fields: callback

type HeadTrackable

type HeadTrackable struct {
	mock.Mock
}

HeadTrackable is an autogenerated mock type for the HeadTrackable type

func NewHeadTrackable

func NewHeadTrackable(t mockConstructorTestingTNewHeadTrackable) *HeadTrackable

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

func (*HeadTrackable) OnNewLongestChain

func (_m *HeadTrackable) OnNewLongestChain(ctx context.Context, head *types.Head)

OnNewLongestChain provides a mock function with given fields: ctx, head

type HeadTracker

type HeadTracker struct {
	mock.Mock
}

HeadTracker is an autogenerated mock type for the HeadTracker type

func NewHeadTracker

func NewHeadTracker(t mockConstructorTestingTNewHeadTracker) *HeadTracker

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

func (*HeadTracker) Backfill

func (_m *HeadTracker) Backfill(ctx context.Context, headWithChain *types.Head, depth uint) error

Backfill provides a mock function with given fields: ctx, headWithChain, depth

func (*HeadTracker) Close

func (_m *HeadTracker) Close() error

Close provides a mock function with given fields:

func (*HeadTracker) HealthReport

func (_m *HeadTracker) HealthReport() map[string]error

HealthReport provides a mock function with given fields:

func (*HeadTracker) Healthy

func (_m *HeadTracker) Healthy() error

Healthy provides a mock function with given fields:

func (*HeadTracker) LatestChain

func (_m *HeadTracker) LatestChain() *types.Head

LatestChain provides a mock function with given fields:

func (*HeadTracker) Name

func (_m *HeadTracker) Name() string

Name provides a mock function with given fields:

func (*HeadTracker) Ready

func (_m *HeadTracker) Ready() error

Ready provides a mock function with given fields:

func (*HeadTracker) Start

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

Start provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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