mocks

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lane

type Lane struct {
	mock.Mock
}

Lane is an autogenerated mock type for the Lane type

func NewLane

func NewLane(t interface {
	mock.TestingT
	Cleanup(func())
}) *Lane

NewLane creates a new instance of Lane. 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 (*Lane) Compare

func (_m *Lane) Compare(ctx types.Context, this types.Tx, other types.Tx) (int, error)

Compare provides a mock function with given fields: ctx, this, other

func (*Lane) Contains

func (_m *Lane) Contains(tx types.Tx) bool

Contains provides a mock function with given fields: tx

func (*Lane) CountTx

func (_m *Lane) CountTx() int

CountTx provides a mock function with given fields:

func (*Lane) GetMaxBlockSpace

func (_m *Lane) GetMaxBlockSpace() math.LegacyDec

GetMaxBlockSpace provides a mock function with given fields:

func (*Lane) GetTxInfo added in v1.3.0

func (_m *Lane) GetTxInfo(ctx types.Context, tx types.Tx) (utils.TxWithInfo, error)

GetTxInfo provides a mock function with given fields: ctx, tx

func (*Lane) Insert

func (_m *Lane) Insert(_a0 context.Context, _a1 types.Tx) error

Insert provides a mock function with given fields: _a0, _a1

func (*Lane) Match

func (_m *Lane) Match(ctx types.Context, tx types.Tx) bool

Match provides a mock function with given fields: ctx, tx

func (*Lane) Name

func (_m *Lane) Name() string

Name provides a mock function with given fields:

func (*Lane) PrepareLane

func (_m *Lane) PrepareLane(ctx types.Context, proposal proposals.Proposal, next block.PrepareLanesHandler) (proposals.Proposal, error)

PrepareLane provides a mock function with given fields: ctx, proposal, next

func (*Lane) Priority added in v1.3.0

func (_m *Lane) Priority(ctx types.Context, tx types.Tx) interface{}

Priority provides a mock function with given fields: ctx, tx

func (*Lane) ProcessLane

func (_m *Lane) ProcessLane(ctx types.Context, proposal proposals.Proposal, txs []types.Tx, next block.ProcessLanesHandler) (proposals.Proposal, error)

ProcessLane provides a mock function with given fields: ctx, proposal, txs, next

func (*Lane) Remove

func (_m *Lane) Remove(_a0 types.Tx) error

Remove provides a mock function with given fields: _a0

func (*Lane) Select

func (_m *Lane) Select(_a0 context.Context, _a1 [][]byte) mempool.Iterator

Select provides a mock function with given fields: _a0, _a1

type LaneMempool

type LaneMempool struct {
	mock.Mock
}

LaneMempool is an autogenerated mock type for the LaneMempool type

func NewLaneMempool

func NewLaneMempool(t interface {
	mock.TestingT
	Cleanup(func())
}) *LaneMempool

NewLaneMempool creates a new instance of LaneMempool. 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 (*LaneMempool) Compare

func (_m *LaneMempool) Compare(ctx types.Context, this types.Tx, other types.Tx) (int, error)

Compare provides a mock function with given fields: ctx, this, other

func (*LaneMempool) Contains

func (_m *LaneMempool) Contains(tx types.Tx) bool

Contains provides a mock function with given fields: tx

func (*LaneMempool) CountTx

func (_m *LaneMempool) CountTx() int

CountTx provides a mock function with given fields:

func (*LaneMempool) Insert

func (_m *LaneMempool) Insert(_a0 context.Context, _a1 types.Tx) error

Insert provides a mock function with given fields: _a0, _a1

func (*LaneMempool) Priority added in v1.3.0

func (_m *LaneMempool) Priority(ctx types.Context, tx types.Tx) interface{}

Priority provides a mock function with given fields: ctx, tx

func (*LaneMempool) Remove

func (_m *LaneMempool) Remove(_a0 types.Tx) error

Remove provides a mock function with given fields: _a0

func (*LaneMempool) Select

func (_m *LaneMempool) Select(_a0 context.Context, _a1 [][]byte) mempool.Iterator

Select provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

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