mocks

package
v2.10.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 3 Imported by: 0 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 HeadBroadcaster added in v2.4.0

type HeadBroadcaster[H types.Head[BLOCK_HASH], BLOCK_HASH types.Hashable] struct {
	mock.Mock
}

HeadBroadcaster is an autogenerated mock type for the HeadBroadcaster type

func NewHeadBroadcaster added in v2.4.0

func NewHeadBroadcaster[H types.Head[BLOCK_HASH], BLOCK_HASH types.Hashable](t interface {
	mock.TestingT
	Cleanup(func())
}) *HeadBroadcaster[H, BLOCK_HASH]

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. The first argument is typically a *testing.T value.

func (*HeadBroadcaster[H, BLOCK_HASH]) BroadcastNewLongestChain added in v2.4.0

func (_m *HeadBroadcaster[H, BLOCK_HASH]) BroadcastNewLongestChain(_a0 H)

BroadcastNewLongestChain provides a mock function with given fields: _a0

func (*HeadBroadcaster[H, BLOCK_HASH]) Close added in v2.4.0

func (_m *HeadBroadcaster[H, BLOCK_HASH]) Close() error

Close provides a mock function with given fields:

func (*HeadBroadcaster[H, BLOCK_HASH]) HealthReport added in v2.4.0

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

HealthReport provides a mock function with given fields:

func (*HeadBroadcaster[H, BLOCK_HASH]) Name added in v2.4.0

func (_m *HeadBroadcaster[H, BLOCK_HASH]) Name() string

Name provides a mock function with given fields:

func (*HeadBroadcaster[H, BLOCK_HASH]) Ready added in v2.4.0

func (_m *HeadBroadcaster[H, BLOCK_HASH]) Ready() error

Ready provides a mock function with given fields:

func (*HeadBroadcaster[H, BLOCK_HASH]) Start added in v2.4.0

func (_m *HeadBroadcaster[H, BLOCK_HASH]) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

func (*HeadBroadcaster[H, BLOCK_HASH]) Subscribe added in v2.4.0

func (_m *HeadBroadcaster[H, BLOCK_HASH]) Subscribe(callback types.HeadTrackable[H, BLOCK_HASH]) (H, func())

Subscribe provides a mock function with given fields: callback

type HeadTracker

type HeadTracker[H types.Head[BLOCK_HASH], BLOCK_HASH types.Hashable] struct {
	mock.Mock
}

HeadTracker is an autogenerated mock type for the HeadTracker type

func NewHeadTracker

func NewHeadTracker[H types.Head[BLOCK_HASH], BLOCK_HASH types.Hashable](t interface {
	mock.TestingT
	Cleanup(func())
}) *HeadTracker[H, BLOCK_HASH]

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. The first argument is typically a *testing.T value.

func (*HeadTracker[H, BLOCK_HASH]) Backfill

func (_m *HeadTracker[H, BLOCK_HASH]) Backfill(ctx context.Context, headWithChain H, depth uint) error

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

func (*HeadTracker[H, BLOCK_HASH]) Close

func (_m *HeadTracker[H, BLOCK_HASH]) Close() error

Close provides a mock function with given fields:

func (*HeadTracker[H, BLOCK_HASH]) HealthReport

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

HealthReport provides a mock function with given fields:

func (*HeadTracker[H, BLOCK_HASH]) LatestChain

func (_m *HeadTracker[H, BLOCK_HASH]) LatestChain() H

LatestChain provides a mock function with given fields:

func (*HeadTracker[H, BLOCK_HASH]) Name

func (_m *HeadTracker[H, BLOCK_HASH]) Name() string

Name provides a mock function with given fields:

func (*HeadTracker[H, BLOCK_HASH]) Ready

func (_m *HeadTracker[H, BLOCK_HASH]) Ready() error

Ready provides a mock function with given fields:

func (*HeadTracker[H, BLOCK_HASH]) Start

func (_m *HeadTracker[H, BLOCK_HASH]) 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