mock

package
v0.28.15-only-dapper Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: AGPL-3.0 Imports: 4 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 Downloader

type Downloader struct {
	mock.Mock
}

Downloader is an autogenerated mock type for the Downloader type

func NewDownloader

func NewDownloader(t mockConstructorTestingTNewDownloader) *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.

func (*Downloader) Done

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

Done provides a mock function with given fields:

func (*Downloader) Download

func (_m *Downloader) Download(ctx context.Context, executionDataID flow.Identifier) (*execution_data.BlockExecutionData, error)

Download provides a mock function with given fields: ctx, executionDataID

func (*Downloader) Ready

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

Ready provides a mock function with given fields:

type ExecutionDataStore

type ExecutionDataStore struct {
	mock.Mock
}

ExecutionDataStore is an autogenerated mock type for the ExecutionDataStore type

func NewExecutionDataStore

func NewExecutionDataStore(t mockConstructorTestingTNewExecutionDataStore) *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.

func (*ExecutionDataStore) AddExecutionData

func (_m *ExecutionDataStore) AddExecutionData(ctx context.Context, executionData *execution_data.BlockExecutionData) (flow.Identifier, error)

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

func (*ExecutionDataStore) GetExecutionData

GetExecutionData 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