mocks

package
v0.8.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FullTreer

type FullTreer struct {
	mock.Mock
}

FullTreer is an autogenerated mock type for the FullTreer type

func NewFullTreer

func NewFullTreer(t interface {
	mock.TestingT
	Cleanup(func())
}) *FullTreer

NewFullTreer creates a new instance of FullTreer. 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 (*FullTreer) EXPECT

func (_m *FullTreer) EXPECT() *FullTreer_Expecter

func (*FullTreer) GetLastRoot

func (_m *FullTreer) GetLastRoot(tx types.Querier) (treetypes.Root, error)

GetLastRoot provides a mock function with given fields: tx

func (*FullTreer) GetLeaf

func (_m *FullTreer) GetLeaf(tx types.Querier, index uint32, root common.Hash) (common.Hash, error)

GetLeaf provides a mock function with given fields: tx, index, root

func (*FullTreer) GetProof

func (_m *FullTreer) GetProof(ctx context.Context, index uint32, root common.Hash) (treetypes.Proof, error)

GetProof provides a mock function with given fields: ctx, index, root

func (*FullTreer) GetRootByHash

func (_m *FullTreer) GetRootByHash(ctx context.Context, hash common.Hash) (*treetypes.Root, error)

GetRootByHash provides a mock function with given fields: ctx, hash

func (*FullTreer) GetRootByIndex

func (_m *FullTreer) GetRootByIndex(ctx context.Context, index uint32) (treetypes.Root, error)

GetRootByIndex provides a mock function with given fields: ctx, index

func (*FullTreer) PutLeaf

func (_m *FullTreer) PutLeaf(tx types.Txer, blockNum uint64, blockPosition uint64, leaf treetypes.Leaf) (common.Hash, error)

PutLeaf provides a mock function with given fields: tx, blockNum, blockPosition, leaf

func (*FullTreer) Reorg

func (_m *FullTreer) Reorg(tx types.Txer, firstReorgedBlock uint64) error

Reorg provides a mock function with given fields: tx, firstReorgedBlock

type FullTreer_Expecter

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

func (*FullTreer_Expecter) GetLastRoot

func (_e *FullTreer_Expecter) GetLastRoot(tx interface{}) *FullTreer_GetLastRoot_Call

GetLastRoot is a helper method to define mock.On call

  • tx types.Querier

func (*FullTreer_Expecter) GetLeaf

func (_e *FullTreer_Expecter) GetLeaf(tx interface{}, index interface{}, root interface{}) *FullTreer_GetLeaf_Call

GetLeaf is a helper method to define mock.On call

  • tx types.Querier
  • index uint32
  • root common.Hash

func (*FullTreer_Expecter) GetProof

func (_e *FullTreer_Expecter) GetProof(ctx interface{}, index interface{}, root interface{}) *FullTreer_GetProof_Call

GetProof is a helper method to define mock.On call

  • ctx context.Context
  • index uint32
  • root common.Hash

func (*FullTreer_Expecter) GetRootByHash

func (_e *FullTreer_Expecter) GetRootByHash(ctx interface{}, hash interface{}) *FullTreer_GetRootByHash_Call

GetRootByHash is a helper method to define mock.On call

  • ctx context.Context
  • hash common.Hash

func (*FullTreer_Expecter) GetRootByIndex

func (_e *FullTreer_Expecter) GetRootByIndex(ctx interface{}, index interface{}) *FullTreer_GetRootByIndex_Call

GetRootByIndex is a helper method to define mock.On call

  • ctx context.Context
  • index uint32

func (*FullTreer_Expecter) PutLeaf

func (_e *FullTreer_Expecter) PutLeaf(tx interface{}, blockNum interface{}, blockPosition interface{}, leaf interface{}) *FullTreer_PutLeaf_Call

PutLeaf is a helper method to define mock.On call

  • tx types.Txer
  • blockNum uint64
  • blockPosition uint64
  • leaf treetypes.Leaf

func (*FullTreer_Expecter) Reorg

func (_e *FullTreer_Expecter) Reorg(tx interface{}, firstReorgedBlock interface{}) *FullTreer_Reorg_Call

Reorg is a helper method to define mock.On call

  • tx types.Txer
  • firstReorgedBlock uint64

type FullTreer_GetLastRoot_Call

type FullTreer_GetLastRoot_Call struct {
	*mock.Call
}

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

func (*FullTreer_GetLastRoot_Call) Return

func (*FullTreer_GetLastRoot_Call) Run

func (*FullTreer_GetLastRoot_Call) RunAndReturn

type FullTreer_GetLeaf_Call

type FullTreer_GetLeaf_Call struct {
	*mock.Call
}

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

func (*FullTreer_GetLeaf_Call) Return

func (*FullTreer_GetLeaf_Call) Run

func (_c *FullTreer_GetLeaf_Call) Run(run func(tx types.Querier, index uint32, root common.Hash)) *FullTreer_GetLeaf_Call

func (*FullTreer_GetLeaf_Call) RunAndReturn

type FullTreer_GetProof_Call

type FullTreer_GetProof_Call struct {
	*mock.Call
}

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

func (*FullTreer_GetProof_Call) Return

func (*FullTreer_GetProof_Call) Run

func (_c *FullTreer_GetProof_Call) Run(run func(ctx context.Context, index uint32, root common.Hash)) *FullTreer_GetProof_Call

func (*FullTreer_GetProof_Call) RunAndReturn

type FullTreer_GetRootByHash_Call

type FullTreer_GetRootByHash_Call struct {
	*mock.Call
}

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

func (*FullTreer_GetRootByHash_Call) Return

func (*FullTreer_GetRootByHash_Call) Run

func (*FullTreer_GetRootByHash_Call) RunAndReturn

type FullTreer_GetRootByIndex_Call

type FullTreer_GetRootByIndex_Call struct {
	*mock.Call
}

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

func (*FullTreer_GetRootByIndex_Call) Return

func (*FullTreer_GetRootByIndex_Call) Run

func (*FullTreer_GetRootByIndex_Call) RunAndReturn

type FullTreer_PutLeaf_Call

type FullTreer_PutLeaf_Call struct {
	*mock.Call
}

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

func (*FullTreer_PutLeaf_Call) Return

func (*FullTreer_PutLeaf_Call) Run

func (_c *FullTreer_PutLeaf_Call) Run(run func(tx types.Txer, blockNum uint64, blockPosition uint64, leaf treetypes.Leaf)) *FullTreer_PutLeaf_Call

func (*FullTreer_PutLeaf_Call) RunAndReturn

type FullTreer_Reorg_Call

type FullTreer_Reorg_Call struct {
	*mock.Call
}

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

func (*FullTreer_Reorg_Call) Return

func (*FullTreer_Reorg_Call) Run

func (_c *FullTreer_Reorg_Call) Run(run func(tx types.Txer, firstReorgedBlock uint64)) *FullTreer_Reorg_Call

func (*FullTreer_Reorg_Call) RunAndReturn

func (_c *FullTreer_Reorg_Call) RunAndReturn(run func(types.Txer, uint64) error) *FullTreer_Reorg_Call

type LeafWriter

type LeafWriter struct {
	mock.Mock
}

LeafWriter is an autogenerated mock type for the LeafWriter type

func NewLeafWriter

func NewLeafWriter(t interface {
	mock.TestingT
	Cleanup(func())
}) *LeafWriter

NewLeafWriter creates a new instance of LeafWriter. 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 (*LeafWriter) EXPECT

func (_m *LeafWriter) EXPECT() *LeafWriter_Expecter

func (*LeafWriter) PutLeaf

func (_m *LeafWriter) PutLeaf(tx types.Txer, blockNum uint64, blockPosition uint64, leaf treetypes.Leaf) (common.Hash, error)

PutLeaf provides a mock function with given fields: tx, blockNum, blockPosition, leaf

type LeafWriter_Expecter

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

func (*LeafWriter_Expecter) PutLeaf

func (_e *LeafWriter_Expecter) PutLeaf(tx interface{}, blockNum interface{}, blockPosition interface{}, leaf interface{}) *LeafWriter_PutLeaf_Call

PutLeaf is a helper method to define mock.On call

  • tx types.Txer
  • blockNum uint64
  • blockPosition uint64
  • leaf treetypes.Leaf

type LeafWriter_PutLeaf_Call

type LeafWriter_PutLeaf_Call struct {
	*mock.Call
}

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

func (*LeafWriter_PutLeaf_Call) Return

func (*LeafWriter_PutLeaf_Call) Run

func (_c *LeafWriter_PutLeaf_Call) Run(run func(tx types.Txer, blockNum uint64, blockPosition uint64, leaf treetypes.Leaf)) *LeafWriter_PutLeaf_Call

func (*LeafWriter_PutLeaf_Call) RunAndReturn

type ReadTreer

type ReadTreer struct {
	mock.Mock
}

ReadTreer is an autogenerated mock type for the ReadTreer type

func NewReadTreer

func NewReadTreer(t interface {
	mock.TestingT
	Cleanup(func())
}) *ReadTreer

NewReadTreer creates a new instance of ReadTreer. 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 (*ReadTreer) EXPECT

func (_m *ReadTreer) EXPECT() *ReadTreer_Expecter

func (*ReadTreer) GetLastRoot

func (_m *ReadTreer) GetLastRoot(tx types.Querier) (treetypes.Root, error)

GetLastRoot provides a mock function with given fields: tx

func (*ReadTreer) GetLeaf

func (_m *ReadTreer) GetLeaf(tx types.Querier, index uint32, root common.Hash) (common.Hash, error)

GetLeaf provides a mock function with given fields: tx, index, root

func (*ReadTreer) GetProof

func (_m *ReadTreer) GetProof(ctx context.Context, index uint32, root common.Hash) (treetypes.Proof, error)

GetProof provides a mock function with given fields: ctx, index, root

func (*ReadTreer) GetRootByHash

func (_m *ReadTreer) GetRootByHash(ctx context.Context, hash common.Hash) (*treetypes.Root, error)

GetRootByHash provides a mock function with given fields: ctx, hash

func (*ReadTreer) GetRootByIndex

func (_m *ReadTreer) GetRootByIndex(ctx context.Context, index uint32) (treetypes.Root, error)

GetRootByIndex provides a mock function with given fields: ctx, index

type ReadTreer_Expecter

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

func (*ReadTreer_Expecter) GetLastRoot

func (_e *ReadTreer_Expecter) GetLastRoot(tx interface{}) *ReadTreer_GetLastRoot_Call

GetLastRoot is a helper method to define mock.On call

  • tx types.Querier

func (*ReadTreer_Expecter) GetLeaf

func (_e *ReadTreer_Expecter) GetLeaf(tx interface{}, index interface{}, root interface{}) *ReadTreer_GetLeaf_Call

GetLeaf is a helper method to define mock.On call

  • tx types.Querier
  • index uint32
  • root common.Hash

func (*ReadTreer_Expecter) GetProof

func (_e *ReadTreer_Expecter) GetProof(ctx interface{}, index interface{}, root interface{}) *ReadTreer_GetProof_Call

GetProof is a helper method to define mock.On call

  • ctx context.Context
  • index uint32
  • root common.Hash

func (*ReadTreer_Expecter) GetRootByHash

func (_e *ReadTreer_Expecter) GetRootByHash(ctx interface{}, hash interface{}) *ReadTreer_GetRootByHash_Call

GetRootByHash is a helper method to define mock.On call

  • ctx context.Context
  • hash common.Hash

func (*ReadTreer_Expecter) GetRootByIndex

func (_e *ReadTreer_Expecter) GetRootByIndex(ctx interface{}, index interface{}) *ReadTreer_GetRootByIndex_Call

GetRootByIndex is a helper method to define mock.On call

  • ctx context.Context
  • index uint32

type ReadTreer_GetLastRoot_Call

type ReadTreer_GetLastRoot_Call struct {
	*mock.Call
}

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

func (*ReadTreer_GetLastRoot_Call) Return

func (*ReadTreer_GetLastRoot_Call) Run

func (*ReadTreer_GetLastRoot_Call) RunAndReturn

type ReadTreer_GetLeaf_Call

type ReadTreer_GetLeaf_Call struct {
	*mock.Call
}

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

func (*ReadTreer_GetLeaf_Call) Return

func (*ReadTreer_GetLeaf_Call) Run

func (_c *ReadTreer_GetLeaf_Call) Run(run func(tx types.Querier, index uint32, root common.Hash)) *ReadTreer_GetLeaf_Call

func (*ReadTreer_GetLeaf_Call) RunAndReturn

type ReadTreer_GetProof_Call

type ReadTreer_GetProof_Call struct {
	*mock.Call
}

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

func (*ReadTreer_GetProof_Call) Return

func (*ReadTreer_GetProof_Call) Run

func (_c *ReadTreer_GetProof_Call) Run(run func(ctx context.Context, index uint32, root common.Hash)) *ReadTreer_GetProof_Call

func (*ReadTreer_GetProof_Call) RunAndReturn

type ReadTreer_GetRootByHash_Call

type ReadTreer_GetRootByHash_Call struct {
	*mock.Call
}

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

func (*ReadTreer_GetRootByHash_Call) Return

func (*ReadTreer_GetRootByHash_Call) Run

func (*ReadTreer_GetRootByHash_Call) RunAndReturn

type ReadTreer_GetRootByIndex_Call

type ReadTreer_GetRootByIndex_Call struct {
	*mock.Call
}

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

func (*ReadTreer_GetRootByIndex_Call) Return

func (*ReadTreer_GetRootByIndex_Call) Run

func (*ReadTreer_GetRootByIndex_Call) RunAndReturn

type ReorganizeTreer

type ReorganizeTreer struct {
	mock.Mock
}

ReorganizeTreer is an autogenerated mock type for the ReorganizeTreer type

func NewReorganizeTreer

func NewReorganizeTreer(t interface {
	mock.TestingT
	Cleanup(func())
}) *ReorganizeTreer

NewReorganizeTreer creates a new instance of ReorganizeTreer. 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 (*ReorganizeTreer) EXPECT

func (*ReorganizeTreer) GetLastRoot

func (_m *ReorganizeTreer) GetLastRoot(tx types.Querier) (treetypes.Root, error)

GetLastRoot provides a mock function with given fields: tx

func (*ReorganizeTreer) GetLeaf

func (_m *ReorganizeTreer) GetLeaf(tx types.Querier, index uint32, root common.Hash) (common.Hash, error)

GetLeaf provides a mock function with given fields: tx, index, root

func (*ReorganizeTreer) GetProof

func (_m *ReorganizeTreer) GetProof(ctx context.Context, index uint32, root common.Hash) (treetypes.Proof, error)

GetProof provides a mock function with given fields: ctx, index, root

func (*ReorganizeTreer) GetRootByHash

func (_m *ReorganizeTreer) GetRootByHash(ctx context.Context, hash common.Hash) (*treetypes.Root, error)

GetRootByHash provides a mock function with given fields: ctx, hash

func (*ReorganizeTreer) GetRootByIndex

func (_m *ReorganizeTreer) GetRootByIndex(ctx context.Context, index uint32) (treetypes.Root, error)

GetRootByIndex provides a mock function with given fields: ctx, index

func (*ReorganizeTreer) Reorg

func (_m *ReorganizeTreer) Reorg(tx types.Txer, firstReorgedBlock uint64) error

Reorg provides a mock function with given fields: tx, firstReorgedBlock

type ReorganizeTreer_Expecter

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

func (*ReorganizeTreer_Expecter) GetLastRoot

func (_e *ReorganizeTreer_Expecter) GetLastRoot(tx interface{}) *ReorganizeTreer_GetLastRoot_Call

GetLastRoot is a helper method to define mock.On call

  • tx types.Querier

func (*ReorganizeTreer_Expecter) GetLeaf

func (_e *ReorganizeTreer_Expecter) GetLeaf(tx interface{}, index interface{}, root interface{}) *ReorganizeTreer_GetLeaf_Call

GetLeaf is a helper method to define mock.On call

  • tx types.Querier
  • index uint32
  • root common.Hash

func (*ReorganizeTreer_Expecter) GetProof

func (_e *ReorganizeTreer_Expecter) GetProof(ctx interface{}, index interface{}, root interface{}) *ReorganizeTreer_GetProof_Call

GetProof is a helper method to define mock.On call

  • ctx context.Context
  • index uint32
  • root common.Hash

func (*ReorganizeTreer_Expecter) GetRootByHash

func (_e *ReorganizeTreer_Expecter) GetRootByHash(ctx interface{}, hash interface{}) *ReorganizeTreer_GetRootByHash_Call

GetRootByHash is a helper method to define mock.On call

  • ctx context.Context
  • hash common.Hash

func (*ReorganizeTreer_Expecter) GetRootByIndex

func (_e *ReorganizeTreer_Expecter) GetRootByIndex(ctx interface{}, index interface{}) *ReorganizeTreer_GetRootByIndex_Call

GetRootByIndex is a helper method to define mock.On call

  • ctx context.Context
  • index uint32

func (*ReorganizeTreer_Expecter) Reorg

func (_e *ReorganizeTreer_Expecter) Reorg(tx interface{}, firstReorgedBlock interface{}) *ReorganizeTreer_Reorg_Call

Reorg is a helper method to define mock.On call

  • tx types.Txer
  • firstReorgedBlock uint64

type ReorganizeTreer_GetLastRoot_Call

type ReorganizeTreer_GetLastRoot_Call struct {
	*mock.Call
}

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

func (*ReorganizeTreer_GetLastRoot_Call) Return

func (*ReorganizeTreer_GetLastRoot_Call) Run

func (*ReorganizeTreer_GetLastRoot_Call) RunAndReturn

type ReorganizeTreer_GetLeaf_Call

type ReorganizeTreer_GetLeaf_Call struct {
	*mock.Call
}

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

func (*ReorganizeTreer_GetLeaf_Call) Return

func (*ReorganizeTreer_GetLeaf_Call) Run

func (*ReorganizeTreer_GetLeaf_Call) RunAndReturn

type ReorganizeTreer_GetProof_Call

type ReorganizeTreer_GetProof_Call struct {
	*mock.Call
}

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

func (*ReorganizeTreer_GetProof_Call) Return

func (*ReorganizeTreer_GetProof_Call) Run

func (*ReorganizeTreer_GetProof_Call) RunAndReturn

type ReorganizeTreer_GetRootByHash_Call

type ReorganizeTreer_GetRootByHash_Call struct {
	*mock.Call
}

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

func (*ReorganizeTreer_GetRootByHash_Call) Return

func (*ReorganizeTreer_GetRootByHash_Call) Run

func (*ReorganizeTreer_GetRootByHash_Call) RunAndReturn

type ReorganizeTreer_GetRootByIndex_Call

type ReorganizeTreer_GetRootByIndex_Call struct {
	*mock.Call
}

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

func (*ReorganizeTreer_GetRootByIndex_Call) Return

func (*ReorganizeTreer_GetRootByIndex_Call) Run

func (*ReorganizeTreer_GetRootByIndex_Call) RunAndReturn

type ReorganizeTreer_Reorg_Call

type ReorganizeTreer_Reorg_Call struct {
	*mock.Call
}

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

func (*ReorganizeTreer_Reorg_Call) Return

func (*ReorganizeTreer_Reorg_Call) Run

func (_c *ReorganizeTreer_Reorg_Call) Run(run func(tx types.Txer, firstReorgedBlock uint64)) *ReorganizeTreer_Reorg_Call

func (*ReorganizeTreer_Reorg_Call) RunAndReturn

Jump to

Keyboard shortcuts

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