mocks

package
v0.0.0-...-be384fd Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metricer

type Metricer struct {
	mock.Mock
}

Metricer is an autogenerated mock type for the Metricer type

func (*Metricer) BackFillBlocksTotal

func (_m *Metricer) BackFillBlocksTotal() int64

BackFillBlocksTotal provides a mock function with given fields:

func (*Metricer) BackFilledBlocks

func (_m *Metricer) BackFilledBlocks() int64

BackFilledBlocks provides a mock function with given fields:

func (*Metricer) ChunkProcessAvgTime

func (_m *Metricer) ChunkProcessAvgTime() time.Duration

ChunkProcessAvgTime provides a mock function with given fields:

func (*Metricer) SnapshotChunksCount

func (_m *Metricer) SnapshotChunksCount() int64

SnapshotChunksCount provides a mock function with given fields:

func (*Metricer) SnapshotChunksTotal

func (_m *Metricer) SnapshotChunksTotal() int64

SnapshotChunksTotal provides a mock function with given fields:

func (*Metricer) SnapshotHeight

func (_m *Metricer) SnapshotHeight() int64

SnapshotHeight provides a mock function with given fields:

func (*Metricer) TotalSnapshots

func (_m *Metricer) TotalSnapshots() int64

TotalSnapshots provides a mock function with given fields:

type StateProvider

type StateProvider struct {
	mock.Mock
}

StateProvider is an autogenerated mock type for the StateProvider type

func NewStateProvider

func NewStateProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *StateProvider

NewStateProvider creates a new instance of StateProvider. 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 (*StateProvider) AppHash

func (_m *StateProvider) AppHash(ctx context.Context, height uint64) (bytes.HexBytes, error)

AppHash provides a mock function with given fields: ctx, height

func (*StateProvider) Commit

func (_m *StateProvider) Commit(ctx context.Context, height uint64) (*types.Commit, error)

Commit provides a mock function with given fields: ctx, height

func (*StateProvider) State

func (_m *StateProvider) State(ctx context.Context, height uint64) (state.State, error)

State provides a mock function with given fields: ctx, height

Jump to

Keyboard shortcuts

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