mocks

package
v2.11.0-beta0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 4 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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Head[BLOCK_HASH, CHAIN_ID]) BlockDifficulty added in v2.8.0

func (_m *Head[BLOCK_HASH, CHAIN_ID]) BlockDifficulty() *big.Int

BlockDifficulty provides a mock function with given fields:

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]) GetTimestamp added in v2.8.0

func (_m *Head[BLOCK_HASH, CHAIN_ID]) GetTimestamp() time.Time

GetTimestamp 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