mocks

package
v0.0.0-...-fb002f8 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.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 NewStateProviderT

type NewStateProviderT interface {
	mock.TestingT
	Cleanup(func())
}

type StateProvider

type StateProvider struct {
	mock.Mock
}

StateProvider is an autogenerated mock type for the StateProvider type

func NewStateProvider

func NewStateProvider(t NewStateProviderT) *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.

func (*StateProvider) AppHash

func (_m *StateProvider) AppHash(ctx context.Context, height uint64) ([]byte, 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