Documentation
¶
Index ¶
- type Storage
- func (_m *Storage) EXPECT() *Storage_Expecter
- func (_mock *Storage) GetFulfilledHeight() (uint64, error)
- func (_mock *Storage) GetPrunedHeight() (uint64, error)
- func (_mock *Storage) PruneUpToHeight(height uint64) error
- func (_mock *Storage) SetFulfilledHeight(height uint64) error
- func (_mock *Storage) Update(updateFn tracker.UpdateFn) error
- type Storage_Expecter
- func (_e *Storage_Expecter) GetFulfilledHeight() *Storage_GetFulfilledHeight_Call
- func (_e *Storage_Expecter) GetPrunedHeight() *Storage_GetPrunedHeight_Call
- func (_e *Storage_Expecter) PruneUpToHeight(height interface{}) *Storage_PruneUpToHeight_Call
- func (_e *Storage_Expecter) SetFulfilledHeight(height interface{}) *Storage_SetFulfilledHeight_Call
- func (_e *Storage_Expecter) Update(updateFn interface{}) *Storage_Update_Call
- type Storage_GetFulfilledHeight_Call
- func (_c *Storage_GetFulfilledHeight_Call) Return(v uint64, err error) *Storage_GetFulfilledHeight_Call
- func (_c *Storage_GetFulfilledHeight_Call) Run(run func()) *Storage_GetFulfilledHeight_Call
- func (_c *Storage_GetFulfilledHeight_Call) RunAndReturn(run func() (uint64, error)) *Storage_GetFulfilledHeight_Call
- type Storage_GetPrunedHeight_Call
- type Storage_PruneUpToHeight_Call
- func (_c *Storage_PruneUpToHeight_Call) Return(err error) *Storage_PruneUpToHeight_Call
- func (_c *Storage_PruneUpToHeight_Call) Run(run func(height uint64)) *Storage_PruneUpToHeight_Call
- func (_c *Storage_PruneUpToHeight_Call) RunAndReturn(run func(height uint64) error) *Storage_PruneUpToHeight_Call
- type Storage_SetFulfilledHeight_Call
- func (_c *Storage_SetFulfilledHeight_Call) Return(err error) *Storage_SetFulfilledHeight_Call
- func (_c *Storage_SetFulfilledHeight_Call) Run(run func(height uint64)) *Storage_SetFulfilledHeight_Call
- func (_c *Storage_SetFulfilledHeight_Call) RunAndReturn(run func(height uint64) error) *Storage_SetFulfilledHeight_Call
- type Storage_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
Storage is an autogenerated mock type for the Storage type
func NewMockStorage ¶ added in v0.30.0
func NewMockStorage() *Storage
func NewStorage ¶
NewStorage creates a new instance of Storage. 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 (*Storage) EXPECT ¶ added in v0.46.0
func (_m *Storage) EXPECT() *Storage_Expecter
func (*Storage) GetFulfilledHeight ¶
GetFulfilledHeight provides a mock function for the type Storage
func (*Storage) GetPrunedHeight ¶
GetPrunedHeight provides a mock function for the type Storage
func (*Storage) PruneUpToHeight ¶ added in v0.27.3
PruneUpToHeight provides a mock function for the type Storage
func (*Storage) SetFulfilledHeight ¶
SetFulfilledHeight provides a mock function for the type Storage
type Storage_Expecter ¶ added in v0.46.0
type Storage_Expecter struct {
// contains filtered or unexported fields
}
func (*Storage_Expecter) GetFulfilledHeight ¶ added in v0.46.0
func (_e *Storage_Expecter) GetFulfilledHeight() *Storage_GetFulfilledHeight_Call
GetFulfilledHeight is a helper method to define mock.On call
func (*Storage_Expecter) GetPrunedHeight ¶ added in v0.46.0
func (_e *Storage_Expecter) GetPrunedHeight() *Storage_GetPrunedHeight_Call
GetPrunedHeight is a helper method to define mock.On call
func (*Storage_Expecter) PruneUpToHeight ¶ added in v0.46.0
func (_e *Storage_Expecter) PruneUpToHeight(height interface{}) *Storage_PruneUpToHeight_Call
PruneUpToHeight is a helper method to define mock.On call
- height uint64
func (*Storage_Expecter) SetFulfilledHeight ¶ added in v0.46.0
func (_e *Storage_Expecter) SetFulfilledHeight(height interface{}) *Storage_SetFulfilledHeight_Call
SetFulfilledHeight is a helper method to define mock.On call
- height uint64
func (*Storage_Expecter) Update ¶ added in v0.46.0
func (_e *Storage_Expecter) Update(updateFn interface{}) *Storage_Update_Call
Update is a helper method to define mock.On call
- updateFn tracker.UpdateFn
type Storage_GetFulfilledHeight_Call ¶ added in v0.46.0
Storage_GetFulfilledHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFulfilledHeight'
func (*Storage_GetFulfilledHeight_Call) Return ¶ added in v0.46.0
func (_c *Storage_GetFulfilledHeight_Call) Return(v uint64, err error) *Storage_GetFulfilledHeight_Call
func (*Storage_GetFulfilledHeight_Call) Run ¶ added in v0.46.0
func (_c *Storage_GetFulfilledHeight_Call) Run(run func()) *Storage_GetFulfilledHeight_Call
func (*Storage_GetFulfilledHeight_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Storage_GetFulfilledHeight_Call) RunAndReturn(run func() (uint64, error)) *Storage_GetFulfilledHeight_Call
type Storage_GetPrunedHeight_Call ¶ added in v0.46.0
Storage_GetPrunedHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPrunedHeight'
func (*Storage_GetPrunedHeight_Call) Return ¶ added in v0.46.0
func (_c *Storage_GetPrunedHeight_Call) Return(v uint64, err error) *Storage_GetPrunedHeight_Call
func (*Storage_GetPrunedHeight_Call) Run ¶ added in v0.46.0
func (_c *Storage_GetPrunedHeight_Call) Run(run func()) *Storage_GetPrunedHeight_Call
func (*Storage_GetPrunedHeight_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Storage_GetPrunedHeight_Call) RunAndReturn(run func() (uint64, error)) *Storage_GetPrunedHeight_Call
type Storage_PruneUpToHeight_Call ¶ added in v0.46.0
Storage_PruneUpToHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PruneUpToHeight'
func (*Storage_PruneUpToHeight_Call) Return ¶ added in v0.46.0
func (_c *Storage_PruneUpToHeight_Call) Return(err error) *Storage_PruneUpToHeight_Call
func (*Storage_PruneUpToHeight_Call) Run ¶ added in v0.46.0
func (_c *Storage_PruneUpToHeight_Call) Run(run func(height uint64)) *Storage_PruneUpToHeight_Call
func (*Storage_PruneUpToHeight_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Storage_PruneUpToHeight_Call) RunAndReturn(run func(height uint64) error) *Storage_PruneUpToHeight_Call
type Storage_SetFulfilledHeight_Call ¶ added in v0.46.0
Storage_SetFulfilledHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFulfilledHeight'
func (*Storage_SetFulfilledHeight_Call) Return ¶ added in v0.46.0
func (_c *Storage_SetFulfilledHeight_Call) Return(err error) *Storage_SetFulfilledHeight_Call
func (*Storage_SetFulfilledHeight_Call) Run ¶ added in v0.46.0
func (_c *Storage_SetFulfilledHeight_Call) Run(run func(height uint64)) *Storage_SetFulfilledHeight_Call
func (*Storage_SetFulfilledHeight_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Storage_SetFulfilledHeight_Call) RunAndReturn(run func(height uint64) error) *Storage_SetFulfilledHeight_Call
type Storage_Update_Call ¶ added in v0.46.0
Storage_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*Storage_Update_Call) Return ¶ added in v0.46.0
func (_c *Storage_Update_Call) Return(err error) *Storage_Update_Call
func (*Storage_Update_Call) Run ¶ added in v0.46.0
func (_c *Storage_Update_Call) Run(run func(updateFn tracker.UpdateFn)) *Storage_Update_Call
func (*Storage_Update_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Storage_Update_Call) RunAndReturn(run func(updateFn tracker.UpdateFn) error) *Storage_Update_Call