mocks

package
v0.37.0-dev Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 0 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 Mempool

type Mempool struct {
	mock.Mock
}

Mempool is an autogenerated mock type for the Mempool type

func NewMempool

func NewMempool(t NewMempoolT) *Mempool

NewMempool creates a new instance of Mempool. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Mempool) CheckTx

func (_m *Mempool) CheckTx(ctx context.Context, tx types.Tx, callback func(*abcitypes.ResponseCheckTx), txInfo mempool.TxInfo) error

CheckTx provides a mock function with given fields: ctx, tx, callback, txInfo

func (*Mempool) EnableTxsAvailable

func (_m *Mempool) EnableTxsAvailable()

EnableTxsAvailable provides a mock function with given fields:

func (*Mempool) Flush

func (_m *Mempool) Flush()

Flush provides a mock function with given fields:

func (*Mempool) FlushAppConn

func (_m *Mempool) FlushAppConn(_a0 context.Context) error

FlushAppConn provides a mock function with given fields: _a0

func (*Mempool) Lock

func (_m *Mempool) Lock()

Lock provides a mock function with given fields:

func (*Mempool) ReapMaxBytesMaxGas

func (_m *Mempool) ReapMaxBytesMaxGas(maxBytes int64, maxGas int64) types.Txs

ReapMaxBytesMaxGas provides a mock function with given fields: maxBytes, maxGas

func (*Mempool) ReapMaxTxs

func (_m *Mempool) ReapMaxTxs(max int) types.Txs

ReapMaxTxs provides a mock function with given fields: max

func (*Mempool) RemoveTxByKey

func (_m *Mempool) RemoveTxByKey(txKey types.TxKey) error

RemoveTxByKey provides a mock function with given fields: txKey

func (*Mempool) Size

func (_m *Mempool) Size() int

Size provides a mock function with given fields:

func (*Mempool) SizeBytes

func (_m *Mempool) SizeBytes() int64

SizeBytes provides a mock function with given fields:

func (*Mempool) TxsAvailable

func (_m *Mempool) TxsAvailable() <-chan struct{}

TxsAvailable provides a mock function with given fields:

func (*Mempool) Unlock

func (_m *Mempool) Unlock()

Unlock provides a mock function with given fields:

func (*Mempool) Update

func (_m *Mempool) Update(ctx context.Context, blockHeight int64, blockTxs types.Txs, txResults []*abcitypes.ExecTxResult, newPreFn mempool.PreCheckFunc, newPostFn mempool.PostCheckFunc, recheck bool) error

Update provides a mock function with given fields: ctx, blockHeight, blockTxs, txResults, newPreFn, newPostFn, recheck

type NewMempoolT

type NewMempoolT interface {
	mock.TestingT
	Cleanup(func())
}

Jump to

Keyboard shortcuts

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