mocks

package
v2.2.0-clf-20230607 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 3 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 Head[BLOCK_HASH types.Hashable, CHAIN_ID txmgrtypes.ID] struct {
	mock.Mock
}

Head is an autogenerated mock type for the Head type

func NewHead added in v2.3.0

func NewHead[BLOCK_HASH types.Hashable, CHAIN_ID txmgrtypes.ID](t mockConstructorTestingTNewHead) *Head[BLOCK_HASH, CHAIN_ID]

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

func (*Head[BLOCK_HASH, CHAIN_ID]) BlockHash added in v2.3.0

func (_m *Head[BLOCK_HASH, CHAIN_ID]) BlockHash() BLOCK_HASH

BlockHash provides a mock function with given fields:

func (*Head[BLOCK_HASH, CHAIN_ID]) BlockNumber added in v2.3.0

func (_m *Head[BLOCK_HASH, CHAIN_ID]) BlockNumber() int64

BlockNumber provides a mock function with given fields:

func (*Head[BLOCK_HASH, CHAIN_ID]) ChainID added in v2.3.0

func (_m *Head[BLOCK_HASH, CHAIN_ID]) ChainID() CHAIN_ID

ChainID provides a mock function with given fields:

func (*Head[BLOCK_HASH, CHAIN_ID]) ChainLength added in v2.3.0

func (_m *Head[BLOCK_HASH, CHAIN_ID]) ChainLength() uint32

ChainLength provides a mock function with given fields:

func (*Head[BLOCK_HASH, CHAIN_ID]) EarliestHeadInChain added in v2.3.0

func (_m *Head[BLOCK_HASH, CHAIN_ID]) EarliestHeadInChain() types.Head[BLOCK_HASH]

EarliestHeadInChain provides a mock function with given fields:

func (*Head[BLOCK_HASH, CHAIN_ID]) GetParent added in v2.3.0

func (_m *Head[BLOCK_HASH, CHAIN_ID]) GetParent() types.Head[BLOCK_HASH]

GetParent provides a mock function with given fields:

func (*Head[BLOCK_HASH, CHAIN_ID]) HasChainID added in v2.3.0

func (_m *Head[BLOCK_HASH, CHAIN_ID]) HasChainID() bool

HasChainID provides a mock function with given fields:

func (*Head[BLOCK_HASH, CHAIN_ID]) HashAtHeight added in v2.3.0

func (_m *Head[BLOCK_HASH, CHAIN_ID]) HashAtHeight(blockNum int64) BLOCK_HASH

HashAtHeight provides a mock function with given fields: blockNum

func (*Head[BLOCK_HASH, CHAIN_ID]) IsValid added in v2.3.0

func (_m *Head[BLOCK_HASH, CHAIN_ID]) IsValid() bool

IsValid provides a mock function with given fields:

type Subscription

type Subscription struct {
	mock.Mock
}

Subscription is an autogenerated mock type for the Subscription type

func NewSubscription

func NewSubscription(t mockConstructorTestingTNewSubscription) *Subscription

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

func (*Subscription) Err

func (_m *Subscription) Err() <-chan error

Err provides a mock function with given fields:

func (*Subscription) Unsubscribe

func (_m *Subscription) Unsubscribe()

Unsubscribe provides a mock function with given fields:

Jump to

Keyboard shortcuts

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