mock

package
v0.46.0-ledger-service.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	mock.Mock
}

Storage is an autogenerated mock type for the Storage type

func NewMockStorage added in v0.30.0

func NewMockStorage() *Storage

func NewStorage

func NewStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *Storage

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

func (_mock *Storage) GetFulfilledHeight() (uint64, error)

GetFulfilledHeight provides a mock function for the type Storage

func (*Storage) GetPrunedHeight

func (_mock *Storage) GetPrunedHeight() (uint64, error)

GetPrunedHeight provides a mock function for the type Storage

func (*Storage) PruneUpToHeight added in v0.27.3

func (_mock *Storage) PruneUpToHeight(height uint64) error

PruneUpToHeight provides a mock function for the type Storage

func (*Storage) SetFulfilledHeight

func (_mock *Storage) SetFulfilledHeight(height uint64) error

SetFulfilledHeight provides a mock function for the type Storage

func (*Storage) Update

func (_mock *Storage) Update(updateFn tracker.UpdateFn) error

Update 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

type Storage_GetFulfilledHeight_Call struct {
	*mock.Call
}

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 (*Storage_GetFulfilledHeight_Call) Run added in v0.46.0

func (*Storage_GetFulfilledHeight_Call) RunAndReturn added in v0.46.0

type Storage_GetPrunedHeight_Call added in v0.46.0

type Storage_GetPrunedHeight_Call struct {
	*mock.Call
}

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 (*Storage_GetPrunedHeight_Call) Run added in v0.46.0

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

type Storage_PruneUpToHeight_Call struct {
	*mock.Call
}

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 (*Storage_PruneUpToHeight_Call) Run added in v0.46.0

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

type Storage_SetFulfilledHeight_Call struct {
	*mock.Call
}

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 (*Storage_SetFulfilledHeight_Call) Run added in v0.46.0

func (*Storage_SetFulfilledHeight_Call) RunAndReturn added in v0.46.0

type Storage_Update_Call added in v0.46.0

type Storage_Update_Call struct {
	*mock.Call
}

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 (*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

Jump to

Keyboard shortcuts

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