Documentation
¶
Index ¶
- type FullTreer
- func (_m *FullTreer) EXPECT() *FullTreer_Expecter
- func (_m *FullTreer) GetLastRoot(tx types.Querier) (treetypes.Root, error)
- func (_m *FullTreer) GetLeaf(tx types.Querier, index uint32, root common.Hash) (common.Hash, error)
- func (_m *FullTreer) GetProof(ctx context.Context, index uint32, root common.Hash) (treetypes.Proof, error)
- func (_m *FullTreer) GetRootByHash(ctx context.Context, hash common.Hash) (*treetypes.Root, error)
- func (_m *FullTreer) GetRootByIndex(ctx context.Context, index uint32) (treetypes.Root, error)
- func (_m *FullTreer) PutLeaf(tx types.Txer, blockNum uint64, blockPosition uint64, leaf treetypes.Leaf) (common.Hash, error)
- func (_m *FullTreer) Reorg(tx types.Txer, firstReorgedBlock uint64) error
- type FullTreer_Expecter
- func (_e *FullTreer_Expecter) GetLastRoot(tx interface{}) *FullTreer_GetLastRoot_Call
- func (_e *FullTreer_Expecter) GetLeaf(tx interface{}, index interface{}, root interface{}) *FullTreer_GetLeaf_Call
- func (_e *FullTreer_Expecter) GetProof(ctx interface{}, index interface{}, root interface{}) *FullTreer_GetProof_Call
- func (_e *FullTreer_Expecter) GetRootByHash(ctx interface{}, hash interface{}) *FullTreer_GetRootByHash_Call
- func (_e *FullTreer_Expecter) GetRootByIndex(ctx interface{}, index interface{}) *FullTreer_GetRootByIndex_Call
- func (_e *FullTreer_Expecter) PutLeaf(tx interface{}, blockNum interface{}, blockPosition interface{}, ...) *FullTreer_PutLeaf_Call
- func (_e *FullTreer_Expecter) Reorg(tx interface{}, firstReorgedBlock interface{}) *FullTreer_Reorg_Call
- type FullTreer_GetLastRoot_Call
- func (_c *FullTreer_GetLastRoot_Call) Return(_a0 treetypes.Root, _a1 error) *FullTreer_GetLastRoot_Call
- func (_c *FullTreer_GetLastRoot_Call) Run(run func(tx types.Querier)) *FullTreer_GetLastRoot_Call
- func (_c *FullTreer_GetLastRoot_Call) RunAndReturn(run func(types.Querier) (treetypes.Root, error)) *FullTreer_GetLastRoot_Call
- type FullTreer_GetLeaf_Call
- func (_c *FullTreer_GetLeaf_Call) Return(_a0 common.Hash, _a1 error) *FullTreer_GetLeaf_Call
- func (_c *FullTreer_GetLeaf_Call) Run(run func(tx types.Querier, index uint32, root common.Hash)) *FullTreer_GetLeaf_Call
- func (_c *FullTreer_GetLeaf_Call) RunAndReturn(run func(types.Querier, uint32, common.Hash) (common.Hash, error)) *FullTreer_GetLeaf_Call
- type FullTreer_GetProof_Call
- func (_c *FullTreer_GetProof_Call) Return(_a0 treetypes.Proof, _a1 error) *FullTreer_GetProof_Call
- func (_c *FullTreer_GetProof_Call) Run(run func(ctx context.Context, index uint32, root common.Hash)) *FullTreer_GetProof_Call
- func (_c *FullTreer_GetProof_Call) RunAndReturn(run func(context.Context, uint32, common.Hash) (treetypes.Proof, error)) *FullTreer_GetProof_Call
- type FullTreer_GetRootByHash_Call
- func (_c *FullTreer_GetRootByHash_Call) Return(_a0 *treetypes.Root, _a1 error) *FullTreer_GetRootByHash_Call
- func (_c *FullTreer_GetRootByHash_Call) Run(run func(ctx context.Context, hash common.Hash)) *FullTreer_GetRootByHash_Call
- func (_c *FullTreer_GetRootByHash_Call) RunAndReturn(run func(context.Context, common.Hash) (*treetypes.Root, error)) *FullTreer_GetRootByHash_Call
- type FullTreer_GetRootByIndex_Call
- func (_c *FullTreer_GetRootByIndex_Call) Return(_a0 treetypes.Root, _a1 error) *FullTreer_GetRootByIndex_Call
- func (_c *FullTreer_GetRootByIndex_Call) Run(run func(ctx context.Context, index uint32)) *FullTreer_GetRootByIndex_Call
- func (_c *FullTreer_GetRootByIndex_Call) RunAndReturn(run func(context.Context, uint32) (treetypes.Root, error)) *FullTreer_GetRootByIndex_Call
- type FullTreer_PutLeaf_Call
- func (_c *FullTreer_PutLeaf_Call) Return(_a0 common.Hash, _a1 error) *FullTreer_PutLeaf_Call
- func (_c *FullTreer_PutLeaf_Call) Run(...) *FullTreer_PutLeaf_Call
- func (_c *FullTreer_PutLeaf_Call) RunAndReturn(run func(types.Txer, uint64, uint64, treetypes.Leaf) (common.Hash, error)) *FullTreer_PutLeaf_Call
- type FullTreer_Reorg_Call
- type LeafWriter
- type LeafWriter_Expecter
- type LeafWriter_PutLeaf_Call
- func (_c *LeafWriter_PutLeaf_Call) Return(_a0 common.Hash, _a1 error) *LeafWriter_PutLeaf_Call
- func (_c *LeafWriter_PutLeaf_Call) Run(...) *LeafWriter_PutLeaf_Call
- func (_c *LeafWriter_PutLeaf_Call) RunAndReturn(run func(types.Txer, uint64, uint64, treetypes.Leaf) (common.Hash, error)) *LeafWriter_PutLeaf_Call
- type ReadTreer
- func (_m *ReadTreer) EXPECT() *ReadTreer_Expecter
- func (_m *ReadTreer) GetLastRoot(tx types.Querier) (treetypes.Root, error)
- func (_m *ReadTreer) GetLeaf(tx types.Querier, index uint32, root common.Hash) (common.Hash, error)
- func (_m *ReadTreer) GetProof(ctx context.Context, index uint32, root common.Hash) (treetypes.Proof, error)
- func (_m *ReadTreer) GetRootByHash(ctx context.Context, hash common.Hash) (*treetypes.Root, error)
- func (_m *ReadTreer) GetRootByIndex(ctx context.Context, index uint32) (treetypes.Root, error)
- type ReadTreer_Expecter
- func (_e *ReadTreer_Expecter) GetLastRoot(tx interface{}) *ReadTreer_GetLastRoot_Call
- func (_e *ReadTreer_Expecter) GetLeaf(tx interface{}, index interface{}, root interface{}) *ReadTreer_GetLeaf_Call
- func (_e *ReadTreer_Expecter) GetProof(ctx interface{}, index interface{}, root interface{}) *ReadTreer_GetProof_Call
- func (_e *ReadTreer_Expecter) GetRootByHash(ctx interface{}, hash interface{}) *ReadTreer_GetRootByHash_Call
- func (_e *ReadTreer_Expecter) GetRootByIndex(ctx interface{}, index interface{}) *ReadTreer_GetRootByIndex_Call
- type ReadTreer_GetLastRoot_Call
- func (_c *ReadTreer_GetLastRoot_Call) Return(_a0 treetypes.Root, _a1 error) *ReadTreer_GetLastRoot_Call
- func (_c *ReadTreer_GetLastRoot_Call) Run(run func(tx types.Querier)) *ReadTreer_GetLastRoot_Call
- func (_c *ReadTreer_GetLastRoot_Call) RunAndReturn(run func(types.Querier) (treetypes.Root, error)) *ReadTreer_GetLastRoot_Call
- type ReadTreer_GetLeaf_Call
- func (_c *ReadTreer_GetLeaf_Call) Return(_a0 common.Hash, _a1 error) *ReadTreer_GetLeaf_Call
- func (_c *ReadTreer_GetLeaf_Call) Run(run func(tx types.Querier, index uint32, root common.Hash)) *ReadTreer_GetLeaf_Call
- func (_c *ReadTreer_GetLeaf_Call) RunAndReturn(run func(types.Querier, uint32, common.Hash) (common.Hash, error)) *ReadTreer_GetLeaf_Call
- type ReadTreer_GetProof_Call
- func (_c *ReadTreer_GetProof_Call) Return(_a0 treetypes.Proof, _a1 error) *ReadTreer_GetProof_Call
- func (_c *ReadTreer_GetProof_Call) Run(run func(ctx context.Context, index uint32, root common.Hash)) *ReadTreer_GetProof_Call
- func (_c *ReadTreer_GetProof_Call) RunAndReturn(run func(context.Context, uint32, common.Hash) (treetypes.Proof, error)) *ReadTreer_GetProof_Call
- type ReadTreer_GetRootByHash_Call
- func (_c *ReadTreer_GetRootByHash_Call) Return(_a0 *treetypes.Root, _a1 error) *ReadTreer_GetRootByHash_Call
- func (_c *ReadTreer_GetRootByHash_Call) Run(run func(ctx context.Context, hash common.Hash)) *ReadTreer_GetRootByHash_Call
- func (_c *ReadTreer_GetRootByHash_Call) RunAndReturn(run func(context.Context, common.Hash) (*treetypes.Root, error)) *ReadTreer_GetRootByHash_Call
- type ReadTreer_GetRootByIndex_Call
- func (_c *ReadTreer_GetRootByIndex_Call) Return(_a0 treetypes.Root, _a1 error) *ReadTreer_GetRootByIndex_Call
- func (_c *ReadTreer_GetRootByIndex_Call) Run(run func(ctx context.Context, index uint32)) *ReadTreer_GetRootByIndex_Call
- func (_c *ReadTreer_GetRootByIndex_Call) RunAndReturn(run func(context.Context, uint32) (treetypes.Root, error)) *ReadTreer_GetRootByIndex_Call
- type ReorganizeTreer
- func (_m *ReorganizeTreer) EXPECT() *ReorganizeTreer_Expecter
- func (_m *ReorganizeTreer) GetLastRoot(tx types.Querier) (treetypes.Root, error)
- func (_m *ReorganizeTreer) GetLeaf(tx types.Querier, index uint32, root common.Hash) (common.Hash, error)
- func (_m *ReorganizeTreer) GetProof(ctx context.Context, index uint32, root common.Hash) (treetypes.Proof, error)
- func (_m *ReorganizeTreer) GetRootByHash(ctx context.Context, hash common.Hash) (*treetypes.Root, error)
- func (_m *ReorganizeTreer) GetRootByIndex(ctx context.Context, index uint32) (treetypes.Root, error)
- func (_m *ReorganizeTreer) Reorg(tx types.Txer, firstReorgedBlock uint64) error
- type ReorganizeTreer_Expecter
- func (_e *ReorganizeTreer_Expecter) GetLastRoot(tx interface{}) *ReorganizeTreer_GetLastRoot_Call
- func (_e *ReorganizeTreer_Expecter) GetLeaf(tx interface{}, index interface{}, root interface{}) *ReorganizeTreer_GetLeaf_Call
- func (_e *ReorganizeTreer_Expecter) GetProof(ctx interface{}, index interface{}, root interface{}) *ReorganizeTreer_GetProof_Call
- func (_e *ReorganizeTreer_Expecter) GetRootByHash(ctx interface{}, hash interface{}) *ReorganizeTreer_GetRootByHash_Call
- func (_e *ReorganizeTreer_Expecter) GetRootByIndex(ctx interface{}, index interface{}) *ReorganizeTreer_GetRootByIndex_Call
- func (_e *ReorganizeTreer_Expecter) Reorg(tx interface{}, firstReorgedBlock interface{}) *ReorganizeTreer_Reorg_Call
- type ReorganizeTreer_GetLastRoot_Call
- func (_c *ReorganizeTreer_GetLastRoot_Call) Return(_a0 treetypes.Root, _a1 error) *ReorganizeTreer_GetLastRoot_Call
- func (_c *ReorganizeTreer_GetLastRoot_Call) Run(run func(tx types.Querier)) *ReorganizeTreer_GetLastRoot_Call
- func (_c *ReorganizeTreer_GetLastRoot_Call) RunAndReturn(run func(types.Querier) (treetypes.Root, error)) *ReorganizeTreer_GetLastRoot_Call
- type ReorganizeTreer_GetLeaf_Call
- func (_c *ReorganizeTreer_GetLeaf_Call) Return(_a0 common.Hash, _a1 error) *ReorganizeTreer_GetLeaf_Call
- func (_c *ReorganizeTreer_GetLeaf_Call) Run(run func(tx types.Querier, index uint32, root common.Hash)) *ReorganizeTreer_GetLeaf_Call
- func (_c *ReorganizeTreer_GetLeaf_Call) RunAndReturn(run func(types.Querier, uint32, common.Hash) (common.Hash, error)) *ReorganizeTreer_GetLeaf_Call
- type ReorganizeTreer_GetProof_Call
- func (_c *ReorganizeTreer_GetProof_Call) Return(_a0 treetypes.Proof, _a1 error) *ReorganizeTreer_GetProof_Call
- func (_c *ReorganizeTreer_GetProof_Call) Run(run func(ctx context.Context, index uint32, root common.Hash)) *ReorganizeTreer_GetProof_Call
- func (_c *ReorganizeTreer_GetProof_Call) RunAndReturn(run func(context.Context, uint32, common.Hash) (treetypes.Proof, error)) *ReorganizeTreer_GetProof_Call
- type ReorganizeTreer_GetRootByHash_Call
- func (_c *ReorganizeTreer_GetRootByHash_Call) Return(_a0 *treetypes.Root, _a1 error) *ReorganizeTreer_GetRootByHash_Call
- func (_c *ReorganizeTreer_GetRootByHash_Call) Run(run func(ctx context.Context, hash common.Hash)) *ReorganizeTreer_GetRootByHash_Call
- func (_c *ReorganizeTreer_GetRootByHash_Call) RunAndReturn(run func(context.Context, common.Hash) (*treetypes.Root, error)) *ReorganizeTreer_GetRootByHash_Call
- type ReorganizeTreer_GetRootByIndex_Call
- func (_c *ReorganizeTreer_GetRootByIndex_Call) Return(_a0 treetypes.Root, _a1 error) *ReorganizeTreer_GetRootByIndex_Call
- func (_c *ReorganizeTreer_GetRootByIndex_Call) Run(run func(ctx context.Context, index uint32)) *ReorganizeTreer_GetRootByIndex_Call
- func (_c *ReorganizeTreer_GetRootByIndex_Call) RunAndReturn(run func(context.Context, uint32) (treetypes.Root, error)) *ReorganizeTreer_GetRootByIndex_Call
- type ReorganizeTreer_Reorg_Call
- func (_c *ReorganizeTreer_Reorg_Call) Return(_a0 error) *ReorganizeTreer_Reorg_Call
- func (_c *ReorganizeTreer_Reorg_Call) Run(run func(tx types.Txer, firstReorgedBlock uint64)) *ReorganizeTreer_Reorg_Call
- func (_c *ReorganizeTreer_Reorg_Call) RunAndReturn(run func(types.Txer, uint64) error) *ReorganizeTreer_Reorg_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FullTreer ¶
FullTreer is an autogenerated mock type for the FullTreer type
func NewFullTreer ¶
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 ¶
GetLastRoot provides a mock function with given fields: tx
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 ¶
GetRootByHash provides a mock function with given fields: ctx, hash
func (*FullTreer) GetRootByIndex ¶
GetRootByIndex provides a mock function with given fields: ctx, index
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 ¶
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 (_c *FullTreer_GetLastRoot_Call) Return(_a0 treetypes.Root, _a1 error) *FullTreer_GetLastRoot_Call
func (*FullTreer_GetLastRoot_Call) Run ¶
func (_c *FullTreer_GetLastRoot_Call) Run(run func(tx types.Querier)) *FullTreer_GetLastRoot_Call
func (*FullTreer_GetLastRoot_Call) RunAndReturn ¶
func (_c *FullTreer_GetLastRoot_Call) RunAndReturn(run func(types.Querier) (treetypes.Root, error)) *FullTreer_GetLastRoot_Call
type FullTreer_GetLeaf_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 (_c *FullTreer_GetLeaf_Call) Return(_a0 common.Hash, _a1 error) *FullTreer_GetLeaf_Call
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 ¶
func (_c *FullTreer_GetLeaf_Call) RunAndReturn(run func(types.Querier, uint32, common.Hash) (common.Hash, error)) *FullTreer_GetLeaf_Call
type FullTreer_GetProof_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 (_c *FullTreer_GetProof_Call) Return(_a0 treetypes.Proof, _a1 error) *FullTreer_GetProof_Call
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 ¶
func (_c *FullTreer_GetProof_Call) RunAndReturn(run func(context.Context, uint32, common.Hash) (treetypes.Proof, error)) *FullTreer_GetProof_Call
type FullTreer_GetRootByHash_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 (_c *FullTreer_GetRootByHash_Call) Return(_a0 *treetypes.Root, _a1 error) *FullTreer_GetRootByHash_Call
func (*FullTreer_GetRootByHash_Call) Run ¶
func (_c *FullTreer_GetRootByHash_Call) Run(run func(ctx context.Context, hash common.Hash)) *FullTreer_GetRootByHash_Call
func (*FullTreer_GetRootByHash_Call) RunAndReturn ¶
func (_c *FullTreer_GetRootByHash_Call) RunAndReturn(run func(context.Context, common.Hash) (*treetypes.Root, error)) *FullTreer_GetRootByHash_Call
type FullTreer_GetRootByIndex_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 (_c *FullTreer_GetRootByIndex_Call) Return(_a0 treetypes.Root, _a1 error) *FullTreer_GetRootByIndex_Call
func (*FullTreer_GetRootByIndex_Call) Run ¶
func (_c *FullTreer_GetRootByIndex_Call) Run(run func(ctx context.Context, index uint32)) *FullTreer_GetRootByIndex_Call
func (*FullTreer_GetRootByIndex_Call) RunAndReturn ¶
func (_c *FullTreer_GetRootByIndex_Call) RunAndReturn(run func(context.Context, uint32) (treetypes.Root, error)) *FullTreer_GetRootByIndex_Call
type FullTreer_PutLeaf_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 (_c *FullTreer_PutLeaf_Call) Return(_a0 common.Hash, _a1 error) *FullTreer_PutLeaf_Call
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 ¶
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 (_c *FullTreer_Reorg_Call) Return(_a0 error) *FullTreer_Reorg_Call
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 ¶
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
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 ¶
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 (_c *LeafWriter_PutLeaf_Call) Return(_a0 common.Hash, _a1 error) *LeafWriter_PutLeaf_Call
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 ¶
ReadTreer is an autogenerated mock type for the ReadTreer type
func NewReadTreer ¶
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 ¶
GetLastRoot provides a mock function with given fields: tx
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 ¶
GetRootByHash provides a mock function with given fields: ctx, hash
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 ¶
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 (_c *ReadTreer_GetLastRoot_Call) Return(_a0 treetypes.Root, _a1 error) *ReadTreer_GetLastRoot_Call
func (*ReadTreer_GetLastRoot_Call) Run ¶
func (_c *ReadTreer_GetLastRoot_Call) Run(run func(tx types.Querier)) *ReadTreer_GetLastRoot_Call
func (*ReadTreer_GetLastRoot_Call) RunAndReturn ¶
func (_c *ReadTreer_GetLastRoot_Call) RunAndReturn(run func(types.Querier) (treetypes.Root, error)) *ReadTreer_GetLastRoot_Call
type ReadTreer_GetLeaf_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 (_c *ReadTreer_GetLeaf_Call) Return(_a0 common.Hash, _a1 error) *ReadTreer_GetLeaf_Call
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 ¶
func (_c *ReadTreer_GetLeaf_Call) RunAndReturn(run func(types.Querier, uint32, common.Hash) (common.Hash, error)) *ReadTreer_GetLeaf_Call
type ReadTreer_GetProof_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 (_c *ReadTreer_GetProof_Call) Return(_a0 treetypes.Proof, _a1 error) *ReadTreer_GetProof_Call
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 ¶
func (_c *ReadTreer_GetProof_Call) RunAndReturn(run func(context.Context, uint32, common.Hash) (treetypes.Proof, error)) *ReadTreer_GetProof_Call
type ReadTreer_GetRootByHash_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 (_c *ReadTreer_GetRootByHash_Call) Return(_a0 *treetypes.Root, _a1 error) *ReadTreer_GetRootByHash_Call
func (*ReadTreer_GetRootByHash_Call) Run ¶
func (_c *ReadTreer_GetRootByHash_Call) Run(run func(ctx context.Context, hash common.Hash)) *ReadTreer_GetRootByHash_Call
func (*ReadTreer_GetRootByHash_Call) RunAndReturn ¶
func (_c *ReadTreer_GetRootByHash_Call) RunAndReturn(run func(context.Context, common.Hash) (*treetypes.Root, error)) *ReadTreer_GetRootByHash_Call
type ReadTreer_GetRootByIndex_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 (_c *ReadTreer_GetRootByIndex_Call) Return(_a0 treetypes.Root, _a1 error) *ReadTreer_GetRootByIndex_Call
func (*ReadTreer_GetRootByIndex_Call) Run ¶
func (_c *ReadTreer_GetRootByIndex_Call) Run(run func(ctx context.Context, index uint32)) *ReadTreer_GetRootByIndex_Call
func (*ReadTreer_GetRootByIndex_Call) RunAndReturn ¶
func (_c *ReadTreer_GetRootByIndex_Call) RunAndReturn(run func(context.Context, uint32) (treetypes.Root, error)) *ReadTreer_GetRootByIndex_Call
type ReorganizeTreer ¶
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 (_m *ReorganizeTreer) EXPECT() *ReorganizeTreer_Expecter
func (*ReorganizeTreer) GetLastRoot ¶
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
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 ¶
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 (_c *ReorganizeTreer_GetLastRoot_Call) Return(_a0 treetypes.Root, _a1 error) *ReorganizeTreer_GetLastRoot_Call
func (*ReorganizeTreer_GetLastRoot_Call) Run ¶
func (_c *ReorganizeTreer_GetLastRoot_Call) Run(run func(tx types.Querier)) *ReorganizeTreer_GetLastRoot_Call
func (*ReorganizeTreer_GetLastRoot_Call) RunAndReturn ¶
func (_c *ReorganizeTreer_GetLastRoot_Call) RunAndReturn(run func(types.Querier) (treetypes.Root, error)) *ReorganizeTreer_GetLastRoot_Call
type ReorganizeTreer_GetLeaf_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 (_c *ReorganizeTreer_GetLeaf_Call) Return(_a0 common.Hash, _a1 error) *ReorganizeTreer_GetLeaf_Call
func (*ReorganizeTreer_GetLeaf_Call) Run ¶
func (_c *ReorganizeTreer_GetLeaf_Call) Run(run func(tx types.Querier, index uint32, root common.Hash)) *ReorganizeTreer_GetLeaf_Call
func (*ReorganizeTreer_GetLeaf_Call) RunAndReturn ¶
func (_c *ReorganizeTreer_GetLeaf_Call) RunAndReturn(run func(types.Querier, uint32, common.Hash) (common.Hash, error)) *ReorganizeTreer_GetLeaf_Call
type ReorganizeTreer_GetProof_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 (_c *ReorganizeTreer_GetProof_Call) Return(_a0 treetypes.Proof, _a1 error) *ReorganizeTreer_GetProof_Call
func (*ReorganizeTreer_GetProof_Call) Run ¶
func (_c *ReorganizeTreer_GetProof_Call) Run(run func(ctx context.Context, index uint32, root common.Hash)) *ReorganizeTreer_GetProof_Call
func (*ReorganizeTreer_GetProof_Call) RunAndReturn ¶
func (_c *ReorganizeTreer_GetProof_Call) RunAndReturn(run func(context.Context, uint32, common.Hash) (treetypes.Proof, error)) *ReorganizeTreer_GetProof_Call
type ReorganizeTreer_GetRootByHash_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 (_c *ReorganizeTreer_GetRootByHash_Call) Return(_a0 *treetypes.Root, _a1 error) *ReorganizeTreer_GetRootByHash_Call
func (*ReorganizeTreer_GetRootByHash_Call) Run ¶
func (_c *ReorganizeTreer_GetRootByHash_Call) Run(run func(ctx context.Context, hash common.Hash)) *ReorganizeTreer_GetRootByHash_Call
func (*ReorganizeTreer_GetRootByHash_Call) RunAndReturn ¶
func (_c *ReorganizeTreer_GetRootByHash_Call) RunAndReturn(run func(context.Context, common.Hash) (*treetypes.Root, error)) *ReorganizeTreer_GetRootByHash_Call
type ReorganizeTreer_GetRootByIndex_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 (_c *ReorganizeTreer_GetRootByIndex_Call) Return(_a0 treetypes.Root, _a1 error) *ReorganizeTreer_GetRootByIndex_Call
func (*ReorganizeTreer_GetRootByIndex_Call) Run ¶
func (_c *ReorganizeTreer_GetRootByIndex_Call) Run(run func(ctx context.Context, index uint32)) *ReorganizeTreer_GetRootByIndex_Call
func (*ReorganizeTreer_GetRootByIndex_Call) RunAndReturn ¶
func (_c *ReorganizeTreer_GetRootByIndex_Call) RunAndReturn(run func(context.Context, uint32) (treetypes.Root, error)) *ReorganizeTreer_GetRootByIndex_Call
type ReorganizeTreer_Reorg_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 (_c *ReorganizeTreer_Reorg_Call) Return(_a0 error) *ReorganizeTreer_Reorg_Call
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 ¶
func (_c *ReorganizeTreer_Reorg_Call) RunAndReturn(run func(types.Txer, uint64) error) *ReorganizeTreer_Reorg_Call