Documentation
¶
Index ¶
- type StateProvider
- func (_m *StateProvider) AppHash(ctx context.Context, height uint64) (bytes.HexBytes, error)
- func (_m *StateProvider) Commit(ctx context.Context, height uint64) (*types.Commit, error)
- func (_m *StateProvider) EXPECT() *StateProvider_Expecter
- func (_m *StateProvider) State(ctx context.Context, height uint64) (state.State, error)
- type StateProvider_AppHash_Call
- func (_c *StateProvider_AppHash_Call) Return(_a0 bytes.HexBytes, _a1 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(context.Context, uint64) (bytes.HexBytes, error)) *StateProvider_AppHash_Call
- type StateProvider_Commit_Call
- func (_c *StateProvider_Commit_Call) Return(_a0 *types.Commit, _a1 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(context.Context, 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(_a0 state.State, _a1 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(context.Context, uint64) (state.State, error)) *StateProvider_State_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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(_a0 bytes.HexBytes, _a1 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(context.Context, 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(_a0 *types.Commit, _a1 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(context.Context, 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(_a0 state.State, _a1 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(context.Context, uint64) (state.State, error)) *StateProvider_State_Call