mock

package
v0.38.0-preview.0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Downloader

type Downloader struct {
	mock.Mock
}

Downloader is an autogenerated mock type for the Downloader type

func NewDownloader

func NewDownloader(t interface {
	mock.TestingT
	Cleanup(func())
}) *Downloader

NewDownloader creates a new instance of Downloader. 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 (*Downloader) Done

func (_m *Downloader) Done() <-chan struct{}

Done provides a mock function with given fields:

func (*Downloader) Get added in v0.31.0

Get provides a mock function with given fields: ctx, rootID

func (*Downloader) HighestCompleteHeight added in v0.37.1

func (_m *Downloader) HighestCompleteHeight() uint64

HighestCompleteHeight provides a mock function with given fields:

func (*Downloader) OnBlockProcessed added in v0.37.1

func (_m *Downloader) OnBlockProcessed(_a0 uint64)

OnBlockProcessed provides a mock function with given fields: _a0

func (*Downloader) Ready

func (_m *Downloader) Ready() <-chan struct{}

Ready provides a mock function with given fields:

func (*Downloader) SetHeightUpdatesConsumer added in v0.37.22

func (_m *Downloader) SetHeightUpdatesConsumer(_a0 execution_data.HeightUpdatesConsumer)

SetHeightUpdatesConsumer provides a mock function with given fields: _a0

type ExecutionDataStore

type ExecutionDataStore struct {
	mock.Mock
}

ExecutionDataStore is an autogenerated mock type for the ExecutionDataStore type

func NewExecutionDataStore

func NewExecutionDataStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *ExecutionDataStore

NewExecutionDataStore creates a new instance of ExecutionDataStore. 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 (*ExecutionDataStore) Add added in v0.31.0

Add provides a mock function with given fields: ctx, executionData

func (*ExecutionDataStore) Get added in v0.31.0

Get provides a mock function with given fields: ctx, rootID

Jump to

Keyboard shortcuts

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