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: 5 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] struct {
	mock.Mock
}

Head is an autogenerated mock type for the Head type

func NewHead

func NewHead[BLOCK_HASH types.Hashable](t interface {
	mock.TestingT
	Cleanup(func())
}) *Head[BLOCK_HASH]

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]) BlockDifficulty

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

BlockDifficulty provides a mock function with given fields:

func (*Head[BLOCK_HASH]) BlockHash

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

BlockHash provides a mock function with given fields:

func (*Head[BLOCK_HASH]) BlockNumber

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

BlockNumber provides a mock function with given fields:

func (*Head[BLOCK_HASH]) ChainLength

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

ChainLength provides a mock function with given fields:

func (*Head[BLOCK_HASH]) EarliestHeadInChain

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

EarliestHeadInChain provides a mock function with given fields:

func (*Head[BLOCK_HASH]) GetParent

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

GetParent provides a mock function with given fields:

func (*Head[BLOCK_HASH]) GetParentHash

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

GetParentHash provides a mock function with given fields:

func (*Head[BLOCK_HASH]) GetTimestamp

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

GetTimestamp provides a mock function with given fields:

func (*Head[BLOCK_HASH]) HashAtHeight

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

HashAtHeight provides a mock function with given fields: blockNum

type HeadTrackable

type HeadTrackable[H types.Head[BLOCK_HASH], BLOCK_HASH types.Hashable] struct {
	mock.Mock
}

HeadTrackable is an autogenerated mock type for the HeadTrackable type

func NewHeadTrackable

func NewHeadTrackable[H types.Head[BLOCK_HASH], BLOCK_HASH types.Hashable](t interface {
	mock.TestingT
	Cleanup(func())
}) *HeadTrackable[H, BLOCK_HASH]

NewHeadTrackable creates a new instance of HeadTrackable. 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 (*HeadTrackable[H, BLOCK_HASH]) OnNewLongestChain

func (_m *HeadTrackable[H, BLOCK_HASH]) OnNewLongestChain(ctx context.Context, head H)

OnNewLongestChain provides a mock function with given fields: ctx, head

type Subscription

type Subscription struct {
	mock.Mock
}

Subscription is an autogenerated mock type for the Subscription type

func NewSubscription

func NewSubscription(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

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