headstest

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: LGPL-3.0, MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSimulatedHeadTracker

func NewSimulatedHeadTracker(ec evmclient.Client, useFinalityTag bool, finalityDepth int64) *simulatedHeadTracker

Types

type Broadcaster

type Broadcaster[H chains.Head[BLOCK_HASH], BLOCK_HASH chains.Hashable] struct {
	mock.Mock
}

Broadcaster is an autogenerated mock type for the Broadcaster type

func NewBroadcaster

func NewBroadcaster[H chains.Head[BLOCK_HASH], BLOCK_HASH chains.Hashable](t interface {
	mock.TestingT
	Cleanup(func())
}) *Broadcaster[H, BLOCK_HASH]

NewBroadcaster creates a new instance of Broadcaster. 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 (*Broadcaster[H, BLOCK_HASH]) BroadcastNewLongestChain

func (_m *Broadcaster[H, BLOCK_HASH]) BroadcastNewLongestChain(_a0 H)

BroadcastNewLongestChain provides a mock function with given fields: _a0

func (*Broadcaster[H, BLOCK_HASH]) Close

func (_m *Broadcaster[H, BLOCK_HASH]) Close() error

Close provides a mock function with no fields

func (*Broadcaster[H, BLOCK_HASH]) EXPECT

func (_m *Broadcaster[H, BLOCK_HASH]) EXPECT() *Broadcaster_Expecter[H, BLOCK_HASH]

func (*Broadcaster[H, BLOCK_HASH]) HealthReport

func (_m *Broadcaster[H, BLOCK_HASH]) HealthReport() map[string]error

HealthReport provides a mock function with no fields

func (*Broadcaster[H, BLOCK_HASH]) Name

func (_m *Broadcaster[H, BLOCK_HASH]) Name() string

Name provides a mock function with no fields

func (*Broadcaster[H, BLOCK_HASH]) Ready

func (_m *Broadcaster[H, BLOCK_HASH]) Ready() error

Ready provides a mock function with no fields

func (*Broadcaster[H, BLOCK_HASH]) Start

func (_m *Broadcaster[H, BLOCK_HASH]) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

func (*Broadcaster[H, BLOCK_HASH]) Subscribe

func (_m *Broadcaster[H, BLOCK_HASH]) Subscribe(callback heads.Trackable[H, BLOCK_HASH]) (H, func())

Subscribe provides a mock function with given fields: callback

type Broadcaster_BroadcastNewLongestChain_Call

type Broadcaster_BroadcastNewLongestChain_Call[H chains.Head[BLOCK_HASH], BLOCK_HASH chains.Hashable] struct {
	*mock.Call
}

Broadcaster_BroadcastNewLongestChain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BroadcastNewLongestChain'

func (*Broadcaster_BroadcastNewLongestChain_Call[H, BLOCK_HASH]) Return

func (*Broadcaster_BroadcastNewLongestChain_Call[H, BLOCK_HASH]) Run

func (_c *Broadcaster_BroadcastNewLongestChain_Call[H, BLOCK_HASH]) Run(run func(_a0 H)) *Broadcaster_BroadcastNewLongestChain_Call[H, BLOCK_HASH]

func (*Broadcaster_BroadcastNewLongestChain_Call[H, BLOCK_HASH]) RunAndReturn

func (_c *Broadcaster_BroadcastNewLongestChain_Call[H, BLOCK_HASH]) RunAndReturn(run func(H)) *Broadcaster_BroadcastNewLongestChain_Call[H, BLOCK_HASH]

type Broadcaster_Close_Call

type Broadcaster_Close_Call[H chains.Head[BLOCK_HASH], BLOCK_HASH chains.Hashable] struct {
	*mock.Call
}

Broadcaster_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'

func (*Broadcaster_Close_Call[H, BLOCK_HASH]) Return

func (_c *Broadcaster_Close_Call[H, BLOCK_HASH]) Return(_a0 error) *Broadcaster_Close_Call[H, BLOCK_HASH]

func (*Broadcaster_Close_Call[H, BLOCK_HASH]) Run

func (_c *Broadcaster_Close_Call[H, BLOCK_HASH]) Run(run func()) *Broadcaster_Close_Call[H, BLOCK_HASH]

func (*Broadcaster_Close_Call[H, BLOCK_HASH]) RunAndReturn

func (_c *Broadcaster_Close_Call[H, BLOCK_HASH]) RunAndReturn(run func() error) *Broadcaster_Close_Call[H, BLOCK_HASH]

type Broadcaster_Expecter

type Broadcaster_Expecter[H chains.Head[BLOCK_HASH], BLOCK_HASH chains.Hashable] struct {
	// contains filtered or unexported fields
}

func (*Broadcaster_Expecter[H, BLOCK_HASH]) BroadcastNewLongestChain

func (_e *Broadcaster_Expecter[H, BLOCK_HASH]) BroadcastNewLongestChain(_a0 interface{}) *Broadcaster_BroadcastNewLongestChain_Call[H, BLOCK_HASH]

BroadcastNewLongestChain is a helper method to define mock.On call

  • _a0 H

func (*Broadcaster_Expecter[H, BLOCK_HASH]) Close

func (_e *Broadcaster_Expecter[H, BLOCK_HASH]) Close() *Broadcaster_Close_Call[H, BLOCK_HASH]

Close is a helper method to define mock.On call

func (*Broadcaster_Expecter[H, BLOCK_HASH]) HealthReport

func (_e *Broadcaster_Expecter[H, BLOCK_HASH]) HealthReport() *Broadcaster_HealthReport_Call[H, BLOCK_HASH]

HealthReport is a helper method to define mock.On call

func (*Broadcaster_Expecter[H, BLOCK_HASH]) Name

func (_e *Broadcaster_Expecter[H, BLOCK_HASH]) Name() *Broadcaster_Name_Call[H, BLOCK_HASH]

Name is a helper method to define mock.On call

func (*Broadcaster_Expecter[H, BLOCK_HASH]) Ready

func (_e *Broadcaster_Expecter[H, BLOCK_HASH]) Ready() *Broadcaster_Ready_Call[H, BLOCK_HASH]

Ready is a helper method to define mock.On call

func (*Broadcaster_Expecter[H, BLOCK_HASH]) Start

func (_e *Broadcaster_Expecter[H, BLOCK_HASH]) Start(_a0 interface{}) *Broadcaster_Start_Call[H, BLOCK_HASH]

Start is a helper method to define mock.On call

  • _a0 context.Context

func (*Broadcaster_Expecter[H, BLOCK_HASH]) Subscribe

func (_e *Broadcaster_Expecter[H, BLOCK_HASH]) Subscribe(callback interface{}) *Broadcaster_Subscribe_Call[H, BLOCK_HASH]

Subscribe is a helper method to define mock.On call

  • callback heads.Trackable[H,BLOCK_HASH]

type Broadcaster_HealthReport_Call

type Broadcaster_HealthReport_Call[H chains.Head[BLOCK_HASH], BLOCK_HASH chains.Hashable] struct {
	*mock.Call
}

Broadcaster_HealthReport_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HealthReport'

func (*Broadcaster_HealthReport_Call[H, BLOCK_HASH]) Return

func (_c *Broadcaster_HealthReport_Call[H, BLOCK_HASH]) Return(_a0 map[string]error) *Broadcaster_HealthReport_Call[H, BLOCK_HASH]

func (*Broadcaster_HealthReport_Call[H, BLOCK_HASH]) Run

func (_c *Broadcaster_HealthReport_Call[H, BLOCK_HASH]) Run(run func()) *Broadcaster_HealthReport_Call[H, BLOCK_HASH]

func (*Broadcaster_HealthReport_Call[H, BLOCK_HASH]) RunAndReturn

func (_c *Broadcaster_HealthReport_Call[H, BLOCK_HASH]) RunAndReturn(run func() map[string]error) *Broadcaster_HealthReport_Call[H, BLOCK_HASH]

type Broadcaster_Name_Call

type Broadcaster_Name_Call[H chains.Head[BLOCK_HASH], BLOCK_HASH chains.Hashable] struct {
	*mock.Call
}

Broadcaster_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'

func (*Broadcaster_Name_Call[H, BLOCK_HASH]) Return

func (_c *Broadcaster_Name_Call[H, BLOCK_HASH]) Return(_a0 string) *Broadcaster_Name_Call[H, BLOCK_HASH]

func (*Broadcaster_Name_Call[H, BLOCK_HASH]) Run

func (_c *Broadcaster_Name_Call[H, BLOCK_HASH]) Run(run func()) *Broadcaster_Name_Call[H, BLOCK_HASH]

func (*Broadcaster_Name_Call[H, BLOCK_HASH]) RunAndReturn

func (_c *Broadcaster_Name_Call[H, BLOCK_HASH]) RunAndReturn(run func() string) *Broadcaster_Name_Call[H, BLOCK_HASH]

type Broadcaster_Ready_Call

type Broadcaster_Ready_Call[H chains.Head[BLOCK_HASH], BLOCK_HASH chains.Hashable] struct {
	*mock.Call
}

Broadcaster_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'

func (*Broadcaster_Ready_Call[H, BLOCK_HASH]) Return

func (_c *Broadcaster_Ready_Call[H, BLOCK_HASH]) Return(_a0 error) *Broadcaster_Ready_Call[H, BLOCK_HASH]

func (*Broadcaster_Ready_Call[H, BLOCK_HASH]) Run

func (_c *Broadcaster_Ready_Call[H, BLOCK_HASH]) Run(run func()) *Broadcaster_Ready_Call[H, BLOCK_HASH]

func (*Broadcaster_Ready_Call[H, BLOCK_HASH]) RunAndReturn

func (_c *Broadcaster_Ready_Call[H, BLOCK_HASH]) RunAndReturn(run func() error) *Broadcaster_Ready_Call[H, BLOCK_HASH]

type Broadcaster_Start_Call

type Broadcaster_Start_Call[H chains.Head[BLOCK_HASH], BLOCK_HASH chains.Hashable] struct {
	*mock.Call
}

Broadcaster_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'

func (*Broadcaster_Start_Call[H, BLOCK_HASH]) Return

func (_c *Broadcaster_Start_Call[H, BLOCK_HASH]) Return(_a0 error) *Broadcaster_Start_Call[H, BLOCK_HASH]

func (*Broadcaster_Start_Call[H, BLOCK_HASH]) Run

func (_c *Broadcaster_Start_Call[H, BLOCK_HASH]) Run(run func(_a0 context.Context)) *Broadcaster_Start_Call[H, BLOCK_HASH]

func (*Broadcaster_Start_Call[H, BLOCK_HASH]) RunAndReturn

func (_c *Broadcaster_Start_Call[H, BLOCK_HASH]) RunAndReturn(run func(context.Context) error) *Broadcaster_Start_Call[H, BLOCK_HASH]

type Broadcaster_Subscribe_Call

type Broadcaster_Subscribe_Call[H chains.Head[BLOCK_HASH], BLOCK_HASH chains.Hashable] struct {
	*mock.Call
}

Broadcaster_Subscribe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Subscribe'

func (*Broadcaster_Subscribe_Call[H, BLOCK_HASH]) Return

func (_c *Broadcaster_Subscribe_Call[H, BLOCK_HASH]) Return(currentLongestChain H, unsubscribe func()) *Broadcaster_Subscribe_Call[H, BLOCK_HASH]

func (*Broadcaster_Subscribe_Call[H, BLOCK_HASH]) Run

func (_c *Broadcaster_Subscribe_Call[H, BLOCK_HASH]) Run(run func(callback heads.Trackable[H, BLOCK_HASH])) *Broadcaster_Subscribe_Call[H, BLOCK_HASH]

func (*Broadcaster_Subscribe_Call[H, BLOCK_HASH]) RunAndReturn

func (_c *Broadcaster_Subscribe_Call[H, BLOCK_HASH]) RunAndReturn(run func(heads.Trackable[H, BLOCK_HASH]) (H, func())) *Broadcaster_Subscribe_Call[H, BLOCK_HASH]

type Trackable

type Trackable[H chains.Head[BLOCK_HASH], BLOCK_HASH chains.Hashable] struct {
	mock.Mock
}

Trackable is an autogenerated mock type for the Trackable type

func NewTrackable

func NewTrackable[H chains.Head[BLOCK_HASH], BLOCK_HASH chains.Hashable](t interface {
	mock.TestingT
	Cleanup(func())
}) *Trackable[H, BLOCK_HASH]

NewTrackable creates a new instance of Trackable. 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 (*Trackable[H, BLOCK_HASH]) EXPECT

func (_m *Trackable[H, BLOCK_HASH]) EXPECT() *Trackable_Expecter[H, BLOCK_HASH]

func (*Trackable[H, BLOCK_HASH]) OnNewLongestChain

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

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

type Trackable_Expecter

type Trackable_Expecter[H chains.Head[BLOCK_HASH], BLOCK_HASH chains.Hashable] struct {
	// contains filtered or unexported fields
}

func (*Trackable_Expecter[H, BLOCK_HASH]) OnNewLongestChain

func (_e *Trackable_Expecter[H, BLOCK_HASH]) OnNewLongestChain(ctx interface{}, head interface{}) *Trackable_OnNewLongestChain_Call[H, BLOCK_HASH]

OnNewLongestChain is a helper method to define mock.On call

  • ctx context.Context
  • head H

type Trackable_OnNewLongestChain_Call

type Trackable_OnNewLongestChain_Call[H chains.Head[BLOCK_HASH], BLOCK_HASH chains.Hashable] struct {
	*mock.Call
}

Trackable_OnNewLongestChain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnNewLongestChain'

func (*Trackable_OnNewLongestChain_Call[H, BLOCK_HASH]) Return

func (_c *Trackable_OnNewLongestChain_Call[H, BLOCK_HASH]) Return() *Trackable_OnNewLongestChain_Call[H, BLOCK_HASH]

func (*Trackable_OnNewLongestChain_Call[H, BLOCK_HASH]) Run

func (_c *Trackable_OnNewLongestChain_Call[H, BLOCK_HASH]) Run(run func(ctx context.Context, head H)) *Trackable_OnNewLongestChain_Call[H, BLOCK_HASH]

func (*Trackable_OnNewLongestChain_Call[H, BLOCK_HASH]) RunAndReturn

func (_c *Trackable_OnNewLongestChain_Call[H, BLOCK_HASH]) RunAndReturn(run func(context.Context, H)) *Trackable_OnNewLongestChain_Call[H, BLOCK_HASH]

type Tracker

type Tracker[H chains.Head[BLOCK_HASH], BLOCK_HASH chains.Hashable] struct {
	mock.Mock
}

Tracker is an autogenerated mock type for the Tracker type

func NewTracker

func NewTracker[H chains.Head[BLOCK_HASH], BLOCK_HASH chains.Hashable](t interface {
	mock.TestingT
	Cleanup(func())
}) *Tracker[H, BLOCK_HASH]

NewTracker creates a new instance of Tracker. 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 (*Tracker[H, BLOCK_HASH]) Backfill

func (_m *Tracker[H, BLOCK_HASH]) Backfill(ctx context.Context, headWithChain H, prevHeadWithChain H) error

Backfill provides a mock function with given fields: ctx, headWithChain, prevHeadWithChain

func (*Tracker[H, BLOCK_HASH]) Close

func (_m *Tracker[H, BLOCK_HASH]) Close() error

Close provides a mock function with no fields

func (*Tracker[H, BLOCK_HASH]) EXPECT

func (_m *Tracker[H, BLOCK_HASH]) EXPECT() *Tracker_Expecter[H, BLOCK_HASH]

func (*Tracker[H, BLOCK_HASH]) HealthReport

func (_m *Tracker[H, BLOCK_HASH]) HealthReport() map[string]error

HealthReport provides a mock function with no fields

func (*Tracker[H, BLOCK_HASH]) LatestAndFinalizedBlock

func (_m *Tracker[H, BLOCK_HASH]) LatestAndFinalizedBlock(ctx context.Context) (H, H, error)

LatestAndFinalizedBlock provides a mock function with given fields: ctx

func (*Tracker[H, BLOCK_HASH]) LatestChain

func (_m *Tracker[H, BLOCK_HASH]) LatestChain() H

LatestChain provides a mock function with no fields

func (*Tracker[H, BLOCK_HASH]) LatestSafeBlock

func (_m *Tracker[H, BLOCK_HASH]) LatestSafeBlock(ctx context.Context) (H, error)

LatestSafeBlock provides a mock function with given fields: ctx

func (*Tracker[H, BLOCK_HASH]) Name

func (_m *Tracker[H, BLOCK_HASH]) Name() string

Name provides a mock function with no fields

func (*Tracker[H, BLOCK_HASH]) Ready

func (_m *Tracker[H, BLOCK_HASH]) Ready() error

Ready provides a mock function with no fields

func (*Tracker[H, BLOCK_HASH]) Start

func (_m *Tracker[H, BLOCK_HASH]) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

type Tracker_Backfill_Call

type Tracker_Backfill_Call[H chains.Head[BLOCK_HASH], BLOCK_HASH chains.Hashable] struct {
	*mock.Call
}

Tracker_Backfill_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Backfill'

func (*Tracker_Backfill_Call[H, BLOCK_HASH]) Return

func (_c *Tracker_Backfill_Call[H, BLOCK_HASH]) Return(err error) *Tracker_Backfill_Call[H, BLOCK_HASH]

func (*Tracker_Backfill_Call[H, BLOCK_HASH]) Run

func (_c *Tracker_Backfill_Call[H, BLOCK_HASH]) Run(run func(ctx context.Context, headWithChain H, prevHeadWithChain H)) *Tracker_Backfill_Call[H, BLOCK_HASH]

func (*Tracker_Backfill_Call[H, BLOCK_HASH]) RunAndReturn

func (_c *Tracker_Backfill_Call[H, BLOCK_HASH]) RunAndReturn(run func(context.Context, H, H) error) *Tracker_Backfill_Call[H, BLOCK_HASH]

type Tracker_Close_Call

type Tracker_Close_Call[H chains.Head[BLOCK_HASH], BLOCK_HASH chains.Hashable] struct {
	*mock.Call
}

Tracker_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'

func (*Tracker_Close_Call[H, BLOCK_HASH]) Return

func (_c *Tracker_Close_Call[H, BLOCK_HASH]) Return(_a0 error) *Tracker_Close_Call[H, BLOCK_HASH]

func (*Tracker_Close_Call[H, BLOCK_HASH]) Run

func (_c *Tracker_Close_Call[H, BLOCK_HASH]) Run(run func()) *Tracker_Close_Call[H, BLOCK_HASH]

func (*Tracker_Close_Call[H, BLOCK_HASH]) RunAndReturn

func (_c *Tracker_Close_Call[H, BLOCK_HASH]) RunAndReturn(run func() error) *Tracker_Close_Call[H, BLOCK_HASH]

type Tracker_Expecter

type Tracker_Expecter[H chains.Head[BLOCK_HASH], BLOCK_HASH chains.Hashable] struct {
	// contains filtered or unexported fields
}

func (*Tracker_Expecter[H, BLOCK_HASH]) Backfill

func (_e *Tracker_Expecter[H, BLOCK_HASH]) Backfill(ctx interface{}, headWithChain interface{}, prevHeadWithChain interface{}) *Tracker_Backfill_Call[H, BLOCK_HASH]

Backfill is a helper method to define mock.On call

  • ctx context.Context
  • headWithChain H
  • prevHeadWithChain H

func (*Tracker_Expecter[H, BLOCK_HASH]) Close

func (_e *Tracker_Expecter[H, BLOCK_HASH]) Close() *Tracker_Close_Call[H, BLOCK_HASH]

Close is a helper method to define mock.On call

func (*Tracker_Expecter[H, BLOCK_HASH]) HealthReport

func (_e *Tracker_Expecter[H, BLOCK_HASH]) HealthReport() *Tracker_HealthReport_Call[H, BLOCK_HASH]

HealthReport is a helper method to define mock.On call

func (*Tracker_Expecter[H, BLOCK_HASH]) LatestAndFinalizedBlock

func (_e *Tracker_Expecter[H, BLOCK_HASH]) LatestAndFinalizedBlock(ctx interface{}) *Tracker_LatestAndFinalizedBlock_Call[H, BLOCK_HASH]

LatestAndFinalizedBlock is a helper method to define mock.On call

  • ctx context.Context

func (*Tracker_Expecter[H, BLOCK_HASH]) LatestChain

func (_e *Tracker_Expecter[H, BLOCK_HASH]) LatestChain() *Tracker_LatestChain_Call[H, BLOCK_HASH]

LatestChain is a helper method to define mock.On call

func (*Tracker_Expecter[H, BLOCK_HASH]) LatestSafeBlock

func (_e *Tracker_Expecter[H, BLOCK_HASH]) LatestSafeBlock(ctx interface{}) *Tracker_LatestSafeBlock_Call[H, BLOCK_HASH]

LatestSafeBlock is a helper method to define mock.On call

  • ctx context.Context

func (*Tracker_Expecter[H, BLOCK_HASH]) Name

func (_e *Tracker_Expecter[H, BLOCK_HASH]) Name() *Tracker_Name_Call[H, BLOCK_HASH]

Name is a helper method to define mock.On call

func (*Tracker_Expecter[H, BLOCK_HASH]) Ready

func (_e *Tracker_Expecter[H, BLOCK_HASH]) Ready() *Tracker_Ready_Call[H, BLOCK_HASH]

Ready is a helper method to define mock.On call

func (*Tracker_Expecter[H, BLOCK_HASH]) Start

func (_e *Tracker_Expecter[H, BLOCK_HASH]) Start(_a0 interface{}) *Tracker_Start_Call[H, BLOCK_HASH]

Start is a helper method to define mock.On call

  • _a0 context.Context

type Tracker_HealthReport_Call

type Tracker_HealthReport_Call[H chains.Head[BLOCK_HASH], BLOCK_HASH chains.Hashable] struct {
	*mock.Call
}

Tracker_HealthReport_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HealthReport'

func (*Tracker_HealthReport_Call[H, BLOCK_HASH]) Return

func (_c *Tracker_HealthReport_Call[H, BLOCK_HASH]) Return(_a0 map[string]error) *Tracker_HealthReport_Call[H, BLOCK_HASH]

func (*Tracker_HealthReport_Call[H, BLOCK_HASH]) Run

func (_c *Tracker_HealthReport_Call[H, BLOCK_HASH]) Run(run func()) *Tracker_HealthReport_Call[H, BLOCK_HASH]

func (*Tracker_HealthReport_Call[H, BLOCK_HASH]) RunAndReturn

func (_c *Tracker_HealthReport_Call[H, BLOCK_HASH]) RunAndReturn(run func() map[string]error) *Tracker_HealthReport_Call[H, BLOCK_HASH]

type Tracker_LatestAndFinalizedBlock_Call

type Tracker_LatestAndFinalizedBlock_Call[H chains.Head[BLOCK_HASH], BLOCK_HASH chains.Hashable] struct {
	*mock.Call
}

Tracker_LatestAndFinalizedBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LatestAndFinalizedBlock'

func (*Tracker_LatestAndFinalizedBlock_Call[H, BLOCK_HASH]) Return

func (_c *Tracker_LatestAndFinalizedBlock_Call[H, BLOCK_HASH]) Return(latest H, finalized H, err error) *Tracker_LatestAndFinalizedBlock_Call[H, BLOCK_HASH]

func (*Tracker_LatestAndFinalizedBlock_Call[H, BLOCK_HASH]) Run

func (_c *Tracker_LatestAndFinalizedBlock_Call[H, BLOCK_HASH]) Run(run func(ctx context.Context)) *Tracker_LatestAndFinalizedBlock_Call[H, BLOCK_HASH]

func (*Tracker_LatestAndFinalizedBlock_Call[H, BLOCK_HASH]) RunAndReturn

func (_c *Tracker_LatestAndFinalizedBlock_Call[H, BLOCK_HASH]) RunAndReturn(run func(context.Context) (H, H, error)) *Tracker_LatestAndFinalizedBlock_Call[H, BLOCK_HASH]

type Tracker_LatestChain_Call

type Tracker_LatestChain_Call[H chains.Head[BLOCK_HASH], BLOCK_HASH chains.Hashable] struct {
	*mock.Call
}

Tracker_LatestChain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LatestChain'

func (*Tracker_LatestChain_Call[H, BLOCK_HASH]) Return

func (_c *Tracker_LatestChain_Call[H, BLOCK_HASH]) Return(_a0 H) *Tracker_LatestChain_Call[H, BLOCK_HASH]

func (*Tracker_LatestChain_Call[H, BLOCK_HASH]) Run

func (_c *Tracker_LatestChain_Call[H, BLOCK_HASH]) Run(run func()) *Tracker_LatestChain_Call[H, BLOCK_HASH]

func (*Tracker_LatestChain_Call[H, BLOCK_HASH]) RunAndReturn

func (_c *Tracker_LatestChain_Call[H, BLOCK_HASH]) RunAndReturn(run func() H) *Tracker_LatestChain_Call[H, BLOCK_HASH]

type Tracker_LatestSafeBlock_Call

type Tracker_LatestSafeBlock_Call[H chains.Head[BLOCK_HASH], BLOCK_HASH chains.Hashable] struct {
	*mock.Call
}

Tracker_LatestSafeBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LatestSafeBlock'

func (*Tracker_LatestSafeBlock_Call[H, BLOCK_HASH]) Return

func (_c *Tracker_LatestSafeBlock_Call[H, BLOCK_HASH]) Return(safe H, err error) *Tracker_LatestSafeBlock_Call[H, BLOCK_HASH]

func (*Tracker_LatestSafeBlock_Call[H, BLOCK_HASH]) Run

func (_c *Tracker_LatestSafeBlock_Call[H, BLOCK_HASH]) Run(run func(ctx context.Context)) *Tracker_LatestSafeBlock_Call[H, BLOCK_HASH]

func (*Tracker_LatestSafeBlock_Call[H, BLOCK_HASH]) RunAndReturn

func (_c *Tracker_LatestSafeBlock_Call[H, BLOCK_HASH]) RunAndReturn(run func(context.Context) (H, error)) *Tracker_LatestSafeBlock_Call[H, BLOCK_HASH]

type Tracker_Name_Call

type Tracker_Name_Call[H chains.Head[BLOCK_HASH], BLOCK_HASH chains.Hashable] struct {
	*mock.Call
}

Tracker_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'

func (*Tracker_Name_Call[H, BLOCK_HASH]) Return

func (_c *Tracker_Name_Call[H, BLOCK_HASH]) Return(_a0 string) *Tracker_Name_Call[H, BLOCK_HASH]

func (*Tracker_Name_Call[H, BLOCK_HASH]) Run

func (_c *Tracker_Name_Call[H, BLOCK_HASH]) Run(run func()) *Tracker_Name_Call[H, BLOCK_HASH]

func (*Tracker_Name_Call[H, BLOCK_HASH]) RunAndReturn

func (_c *Tracker_Name_Call[H, BLOCK_HASH]) RunAndReturn(run func() string) *Tracker_Name_Call[H, BLOCK_HASH]

type Tracker_Ready_Call

type Tracker_Ready_Call[H chains.Head[BLOCK_HASH], BLOCK_HASH chains.Hashable] struct {
	*mock.Call
}

Tracker_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'

func (*Tracker_Ready_Call[H, BLOCK_HASH]) Return

func (_c *Tracker_Ready_Call[H, BLOCK_HASH]) Return(_a0 error) *Tracker_Ready_Call[H, BLOCK_HASH]

func (*Tracker_Ready_Call[H, BLOCK_HASH]) Run

func (_c *Tracker_Ready_Call[H, BLOCK_HASH]) Run(run func()) *Tracker_Ready_Call[H, BLOCK_HASH]

func (*Tracker_Ready_Call[H, BLOCK_HASH]) RunAndReturn

func (_c *Tracker_Ready_Call[H, BLOCK_HASH]) RunAndReturn(run func() error) *Tracker_Ready_Call[H, BLOCK_HASH]

type Tracker_Start_Call

type Tracker_Start_Call[H chains.Head[BLOCK_HASH], BLOCK_HASH chains.Hashable] struct {
	*mock.Call
}

Tracker_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'

func (*Tracker_Start_Call[H, BLOCK_HASH]) Return

func (_c *Tracker_Start_Call[H, BLOCK_HASH]) Return(_a0 error) *Tracker_Start_Call[H, BLOCK_HASH]

func (*Tracker_Start_Call[H, BLOCK_HASH]) Run

func (_c *Tracker_Start_Call[H, BLOCK_HASH]) Run(run func(_a0 context.Context)) *Tracker_Start_Call[H, BLOCK_HASH]

func (*Tracker_Start_Call[H, BLOCK_HASH]) RunAndReturn

func (_c *Tracker_Start_Call[H, BLOCK_HASH]) RunAndReturn(run func(context.Context) error) *Tracker_Start_Call[H, BLOCK_HASH]

Jump to

Keyboard shortcuts

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