mocks

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 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 ConsensusStateProvider added in v1.5.0

type ConsensusStateProvider struct {
	mock.Mock
}

ConsensusStateProvider is an autogenerated mock type for the ConsensusStateProvider type

func NewConsensusStateProvider added in v1.5.0

func NewConsensusStateProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *ConsensusStateProvider

NewConsensusStateProvider creates a new instance of ConsensusStateProvider. 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 (*ConsensusStateProvider) EXPECT added in v1.5.0

func (*ConsensusStateProvider) GetCurrentHeight added in v1.5.0

func (_mock *ConsensusStateProvider) GetCurrentHeight() int64

GetCurrentHeight provides a mock function for the type ConsensusStateProvider

func (*ConsensusStateProvider) PublishCommitEvent added in v1.5.0

func (_mock *ConsensusStateProvider) PublishCommitEvent(commit *types.Commit) error

PublishCommitEvent provides a mock function for the type ConsensusStateProvider

type ConsensusStateProvider_Expecter added in v1.5.0

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

func (*ConsensusStateProvider_Expecter) GetCurrentHeight added in v1.5.0

GetCurrentHeight is a helper method to define mock.On call

func (*ConsensusStateProvider_Expecter) PublishCommitEvent added in v1.5.0

func (_e *ConsensusStateProvider_Expecter) PublishCommitEvent(commit interface{}) *ConsensusStateProvider_PublishCommitEvent_Call

PublishCommitEvent is a helper method to define mock.On call

  • commit *types.Commit

type ConsensusStateProvider_GetCurrentHeight_Call added in v1.5.0

type ConsensusStateProvider_GetCurrentHeight_Call struct {
	*mock.Call
}

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

func (*ConsensusStateProvider_GetCurrentHeight_Call) Return added in v1.5.0

func (*ConsensusStateProvider_GetCurrentHeight_Call) Run added in v1.5.0

func (*ConsensusStateProvider_GetCurrentHeight_Call) RunAndReturn added in v1.5.0

type ConsensusStateProvider_PublishCommitEvent_Call added in v1.5.0

type ConsensusStateProvider_PublishCommitEvent_Call struct {
	*mock.Call
}

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

func (*ConsensusStateProvider_PublishCommitEvent_Call) Return added in v1.5.0

func (*ConsensusStateProvider_PublishCommitEvent_Call) Run added in v1.5.0

func (*ConsensusStateProvider_PublishCommitEvent_Call) RunAndReturn added in v1.5.0

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 (_mock *StateProvider) AppHash(ctx context.Context, height uint64) (bytes.HexBytes, error)

AppHash provides a mock function for the type StateProvider

func (*StateProvider) Commit

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

Commit provides a mock function for the type StateProvider

func (*StateProvider) EXPECT added in v1.4.0

func (_m *StateProvider) EXPECT() *StateProvider_Expecter

func (*StateProvider) State

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

State provides a mock function for the type StateProvider

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

func (_c *StateProvider_AppHash_Call) RunAndReturn(run func(ctx context.Context, height uint64) (bytes.HexBytes, error)) *StateProvider_AppHash_Call

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

func (_c *StateProvider_Commit_Call) RunAndReturn(run func(ctx context.Context, height uint64) (*types.Commit, error)) *StateProvider_Commit_Call

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

func (_c *StateProvider_State_Call) RunAndReturn(run func(ctx context.Context, height uint64) (state.State, error)) *StateProvider_State_Call

Jump to

Keyboard shortcuts

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