mocks

package
v0.0.0-...-3674750 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 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

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

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

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

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

BlockNumber provides a mock function with given fields:

func (*Head[BLOCK_HASH, CHAIN_ID]) ChainID

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

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

ChainLength provides a mock function with given fields:

func (*Head[BLOCK_HASH, CHAIN_ID]) EarliestHeadInChain

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

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

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

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

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

HasChainID provides a mock function with given fields:

func (*Head[BLOCK_HASH, CHAIN_ID]) HashAtHeight

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

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