Documentation
¶
Index ¶
- type ConsensusStateProvider
- type ConsensusStateProvider_Expecter
- type ConsensusStateProvider_GetCurrentHeight_Call
- func (_c *ConsensusStateProvider_GetCurrentHeight_Call) Return(n int64) *ConsensusStateProvider_GetCurrentHeight_Call
- func (_c *ConsensusStateProvider_GetCurrentHeight_Call) Run(run func()) *ConsensusStateProvider_GetCurrentHeight_Call
- func (_c *ConsensusStateProvider_GetCurrentHeight_Call) RunAndReturn(run func() int64) *ConsensusStateProvider_GetCurrentHeight_Call
- type ConsensusStateProvider_PublishCommitEvent_Call
- func (_c *ConsensusStateProvider_PublishCommitEvent_Call) Return(err error) *ConsensusStateProvider_PublishCommitEvent_Call
- func (_c *ConsensusStateProvider_PublishCommitEvent_Call) Run(run func(commit *types.Commit)) *ConsensusStateProvider_PublishCommitEvent_Call
- func (_c *ConsensusStateProvider_PublishCommitEvent_Call) RunAndReturn(run func(commit *types.Commit) error) *ConsensusStateProvider_PublishCommitEvent_Call
- type StateProvider
- func (_mock *StateProvider) AppHash(ctx context.Context, height uint64) (bytes.HexBytes, error)
- func (_mock *StateProvider) Commit(ctx context.Context, height uint64) (*types.Commit, error)
- func (_m *StateProvider) EXPECT() *StateProvider_Expecter
- func (_mock *StateProvider) State(ctx context.Context, height uint64) (state.State, error)
- type StateProvider_AppHash_Call
- func (_c *StateProvider_AppHash_Call) Return(hexBytes bytes.HexBytes, err error) *StateProvider_AppHash_Call
- func (_c *StateProvider_AppHash_Call) Run(run func(ctx context.Context, height uint64)) *StateProvider_AppHash_Call
- func (_c *StateProvider_AppHash_Call) RunAndReturn(run func(ctx context.Context, height uint64) (bytes.HexBytes, error)) *StateProvider_AppHash_Call
- type StateProvider_Commit_Call
- func (_c *StateProvider_Commit_Call) Return(commit *types.Commit, err error) *StateProvider_Commit_Call
- func (_c *StateProvider_Commit_Call) Run(run func(ctx context.Context, height uint64)) *StateProvider_Commit_Call
- func (_c *StateProvider_Commit_Call) RunAndReturn(run func(ctx context.Context, height uint64) (*types.Commit, error)) *StateProvider_Commit_Call
- type StateProvider_Expecter
- func (_e *StateProvider_Expecter) AppHash(ctx interface{}, height interface{}) *StateProvider_AppHash_Call
- func (_e *StateProvider_Expecter) Commit(ctx interface{}, height interface{}) *StateProvider_Commit_Call
- func (_e *StateProvider_Expecter) State(ctx interface{}, height interface{}) *StateProvider_State_Call
- type StateProvider_State_Call
- func (_c *StateProvider_State_Call) Return(state1 state.State, err error) *StateProvider_State_Call
- func (_c *StateProvider_State_Call) Run(run func(ctx context.Context, height uint64)) *StateProvider_State_Call
- func (_c *StateProvider_State_Call) RunAndReturn(run func(ctx context.Context, height uint64) (state.State, error)) *StateProvider_State_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsensusStateProvider ¶ added in v1.5.0
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 (_m *ConsensusStateProvider) EXPECT() *ConsensusStateProvider_Expecter
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
func (_e *ConsensusStateProvider_Expecter) GetCurrentHeight() *ConsensusStateProvider_GetCurrentHeight_Call
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
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 (_c *ConsensusStateProvider_GetCurrentHeight_Call) Return(n int64) *ConsensusStateProvider_GetCurrentHeight_Call
func (*ConsensusStateProvider_GetCurrentHeight_Call) Run ¶ added in v1.5.0
func (_c *ConsensusStateProvider_GetCurrentHeight_Call) Run(run func()) *ConsensusStateProvider_GetCurrentHeight_Call
func (*ConsensusStateProvider_GetCurrentHeight_Call) RunAndReturn ¶ added in v1.5.0
func (_c *ConsensusStateProvider_GetCurrentHeight_Call) RunAndReturn(run func() int64) *ConsensusStateProvider_GetCurrentHeight_Call
type ConsensusStateProvider_PublishCommitEvent_Call ¶ added in v1.5.0
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 (_c *ConsensusStateProvider_PublishCommitEvent_Call) Return(err error) *ConsensusStateProvider_PublishCommitEvent_Call
func (*ConsensusStateProvider_PublishCommitEvent_Call) Run ¶ added in v1.5.0
func (_c *ConsensusStateProvider_PublishCommitEvent_Call) Run(run func(commit *types.Commit)) *ConsensusStateProvider_PublishCommitEvent_Call
func (*ConsensusStateProvider_PublishCommitEvent_Call) RunAndReturn ¶ added in v1.5.0
func (_c *ConsensusStateProvider_PublishCommitEvent_Call) RunAndReturn(run func(commit *types.Commit) error) *ConsensusStateProvider_PublishCommitEvent_Call
type StateProvider ¶
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) EXPECT ¶ added in v1.4.0
func (_m *StateProvider) EXPECT() *StateProvider_Expecter
type StateProvider_AppHash_Call ¶ added in v1.4.0
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 (_c *StateProvider_AppHash_Call) Return(hexBytes bytes.HexBytes, err error) *StateProvider_AppHash_Call
func (*StateProvider_AppHash_Call) Run ¶ added in v1.4.0
func (_c *StateProvider_AppHash_Call) Run(run func(ctx context.Context, height uint64)) *StateProvider_AppHash_Call
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
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 (_c *StateProvider_Commit_Call) Return(commit *types.Commit, err error) *StateProvider_Commit_Call
func (*StateProvider_Commit_Call) Run ¶ added in v1.4.0
func (_c *StateProvider_Commit_Call) Run(run func(ctx context.Context, height uint64)) *StateProvider_Commit_Call
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
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 (_c *StateProvider_State_Call) Return(state1 state.State, err error) *StateProvider_State_Call
func (*StateProvider_State_Call) Run ¶ added in v1.4.0
func (_c *StateProvider_State_Call) Run(run func(ctx context.Context, height uint64)) *StateProvider_State_Call
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