mocks

package
v2.4.1-clf-20230809 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 2 Imported by: 0

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 types.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 types.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]) GetParentHash added in v2.3.0

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

GetParentHash 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