mocks

package
v2.1.3 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

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

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

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

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