mocks

package
v1.5.0-dev.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) EXPECT added in v1.4.0

func (_m *StateProvider) EXPECT() *StateProvider_Expecter

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

type StateProvider_AppHash_Call added in v1.4.0

type StateProvider_AppHash_Call struct {
	*mock.Call
}

StateProvider_AppHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AppHash'

func (*StateProvider_AppHash_Call) Return added in v1.4.0

func (*StateProvider_AppHash_Call) Run added in v1.4.0

func (*StateProvider_AppHash_Call) RunAndReturn added in v1.4.0

type StateProvider_Commit_Call added in v1.4.0

type StateProvider_Commit_Call struct {
	*mock.Call
}

StateProvider_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'

func (*StateProvider_Commit_Call) Return added in v1.4.0

func (*StateProvider_Commit_Call) Run added in v1.4.0

func (*StateProvider_Commit_Call) RunAndReturn added in v1.4.0

type StateProvider_Expecter added in v1.4.0

type StateProvider_Expecter struct {
	// contains filtered or unexported fields
}

func (*StateProvider_Expecter) AppHash added in v1.4.0

func (_e *StateProvider_Expecter) AppHash(ctx interface{}, height interface{}) *StateProvider_AppHash_Call

AppHash is a helper method to define mock.On call

  • ctx context.Context
  • height uint64

func (*StateProvider_Expecter) Commit added in v1.4.0

func (_e *StateProvider_Expecter) Commit(ctx interface{}, height interface{}) *StateProvider_Commit_Call

Commit is a helper method to define mock.On call

  • ctx context.Context
  • height uint64

func (*StateProvider_Expecter) State added in v1.4.0

func (_e *StateProvider_Expecter) State(ctx interface{}, height interface{}) *StateProvider_State_Call

State is a helper method to define mock.On call

  • ctx context.Context
  • height uint64

type StateProvider_State_Call added in v1.4.0

type StateProvider_State_Call struct {
	*mock.Call
}

StateProvider_State_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'State'

func (*StateProvider_State_Call) Return added in v1.4.0

func (*StateProvider_State_Call) Run added in v1.4.0

func (*StateProvider_State_Call) RunAndReturn added in v1.4.0

Jump to

Keyboard shortcuts

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