mempoolmock

package
v1.12.2-snowflake-only.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package mempoolmock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mempool

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

Mempool is a mock of Mempool interface.

func NewMempool

func NewMempool(ctrl *gomock.Controller) *Mempool

NewMempool creates a new mock instance.

func (*Mempool) Add

func (m *Mempool) Add(tx *txs.Tx) error

Add mocks base method.

func (*Mempool) EXPECT

func (m *Mempool) EXPECT() *MempoolMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*Mempool) Get

func (m *Mempool) Get(txID ids.ID) (*txs.Tx, bool)

Get mocks base method.

func (*Mempool) GetDropReason

func (m *Mempool) GetDropReason(txID ids.ID) error

GetDropReason mocks base method.

func (*Mempool) Iterate

func (m *Mempool) Iterate(f func(*txs.Tx) bool)

Iterate mocks base method.

func (*Mempool) Len

func (m *Mempool) Len() int

Len mocks base method.

func (*Mempool) MarkDropped

func (m *Mempool) MarkDropped(txID ids.ID, reason error)

MarkDropped mocks base method.

func (*Mempool) Peek

func (m *Mempool) Peek() (*txs.Tx, bool)

Peek mocks base method.

func (*Mempool) Remove

func (m *Mempool) Remove(txs ...*txs.Tx)

Remove mocks base method.

func (*Mempool) RequestBuildBlock

func (m *Mempool) RequestBuildBlock(emptyBlockPermitted bool)

RequestBuildBlock mocks base method.

type MempoolMockRecorder

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

MempoolMockRecorder is the mock recorder for Mempool.

func (*MempoolMockRecorder) Add

func (mr *MempoolMockRecorder) Add(tx any) *gomock.Call

Add indicates an expected call of Add.

func (*MempoolMockRecorder) Get

func (mr *MempoolMockRecorder) Get(txID any) *gomock.Call

Get indicates an expected call of Get.

func (*MempoolMockRecorder) GetDropReason

func (mr *MempoolMockRecorder) GetDropReason(txID any) *gomock.Call

GetDropReason indicates an expected call of GetDropReason.

func (*MempoolMockRecorder) Iterate

func (mr *MempoolMockRecorder) Iterate(f any) *gomock.Call

Iterate indicates an expected call of Iterate.

func (*MempoolMockRecorder) Len

func (mr *MempoolMockRecorder) Len() *gomock.Call

Len indicates an expected call of Len.

func (*MempoolMockRecorder) MarkDropped

func (mr *MempoolMockRecorder) MarkDropped(txID, reason any) *gomock.Call

MarkDropped indicates an expected call of MarkDropped.

func (*MempoolMockRecorder) Peek

func (mr *MempoolMockRecorder) Peek() *gomock.Call

Peek indicates an expected call of Peek.

func (*MempoolMockRecorder) Remove

func (mr *MempoolMockRecorder) Remove(txs ...any) *gomock.Call

Remove indicates an expected call of Remove.

func (*MempoolMockRecorder) RequestBuildBlock

func (mr *MempoolMockRecorder) RequestBuildBlock(emptyBlockPermitted any) *gomock.Call

RequestBuildBlock indicates an expected call of RequestBuildBlock.

Jump to

Keyboard shortcuts

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