mocks

package
v2.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 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 HeadBroadcaster

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

HeadBroadcaster is an autogenerated mock type for the HeadBroadcaster type

func NewHeadBroadcaster

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

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

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

BroadcastNewLongestChain provides a mock function with given fields: _a0

func (*HeadBroadcaster[H, BLOCK_HASH]) Close

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

Close provides a mock function with given fields:

func (*HeadBroadcaster[H, BLOCK_HASH]) EXPECT added in v2.15.0

func (_m *HeadBroadcaster[H, BLOCK_HASH]) EXPECT() *HeadBroadcaster_Expecter[H, BLOCK_HASH]

func (*HeadBroadcaster[H, BLOCK_HASH]) HealthReport

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

HealthReport provides a mock function with given fields:

func (*HeadBroadcaster[H, BLOCK_HASH]) Name

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

Name provides a mock function with given fields:

func (*HeadBroadcaster[H, BLOCK_HASH]) Ready

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

Ready provides a mock function with given fields:

func (*HeadBroadcaster[H, BLOCK_HASH]) Start

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

Start provides a mock function with given fields: _a0

func (*HeadBroadcaster[H, BLOCK_HASH]) Subscribe

func (_m *HeadBroadcaster[H, BLOCK_HASH]) Subscribe(callback headtracker.HeadTrackable[H, BLOCK_HASH]) (H, func())

Subscribe provides a mock function with given fields: callback

type HeadBroadcaster_BroadcastNewLongestChain_Call added in v2.15.0

type HeadBroadcaster_BroadcastNewLongestChain_Call[H types.Head[BLOCK_HASH], BLOCK_HASH types.Hashable] struct {
	*mock.Call
}

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

func (*HeadBroadcaster_BroadcastNewLongestChain_Call[H, BLOCK_HASH]) Return added in v2.15.0

func (*HeadBroadcaster_BroadcastNewLongestChain_Call[H, BLOCK_HASH]) Run added in v2.15.0

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

func (*HeadBroadcaster_BroadcastNewLongestChain_Call[H, BLOCK_HASH]) RunAndReturn added in v2.15.0

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

type HeadBroadcaster_Close_Call added in v2.15.0

type HeadBroadcaster_Close_Call[H types.Head[BLOCK_HASH], BLOCK_HASH types.Hashable] struct {
	*mock.Call
}

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

func (*HeadBroadcaster_Close_Call[H, BLOCK_HASH]) Return added in v2.15.0

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

func (*HeadBroadcaster_Close_Call[H, BLOCK_HASH]) Run added in v2.15.0

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

func (*HeadBroadcaster_Close_Call[H, BLOCK_HASH]) RunAndReturn added in v2.15.0

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

type HeadBroadcaster_Expecter added in v2.15.0

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

func (*HeadBroadcaster_Expecter[H, BLOCK_HASH]) BroadcastNewLongestChain added in v2.15.0

func (_e *HeadBroadcaster_Expecter[H, BLOCK_HASH]) BroadcastNewLongestChain(_a0 interface{}) *HeadBroadcaster_BroadcastNewLongestChain_Call[H, BLOCK_HASH]

BroadcastNewLongestChain is a helper method to define mock.On call

  • _a0 H

func (*HeadBroadcaster_Expecter[H, BLOCK_HASH]) Close added in v2.15.0

func (_e *HeadBroadcaster_Expecter[H, BLOCK_HASH]) Close() *HeadBroadcaster_Close_Call[H, BLOCK_HASH]

Close is a helper method to define mock.On call

func (*HeadBroadcaster_Expecter[H, BLOCK_HASH]) HealthReport added in v2.15.0

func (_e *HeadBroadcaster_Expecter[H, BLOCK_HASH]) HealthReport() *HeadBroadcaster_HealthReport_Call[H, BLOCK_HASH]

HealthReport is a helper method to define mock.On call

func (*HeadBroadcaster_Expecter[H, BLOCK_HASH]) Name added in v2.15.0

func (_e *HeadBroadcaster_Expecter[H, BLOCK_HASH]) Name() *HeadBroadcaster_Name_Call[H, BLOCK_HASH]

Name is a helper method to define mock.On call

func (*HeadBroadcaster_Expecter[H, BLOCK_HASH]) Ready added in v2.15.0

func (_e *HeadBroadcaster_Expecter[H, BLOCK_HASH]) Ready() *HeadBroadcaster_Ready_Call[H, BLOCK_HASH]

Ready is a helper method to define mock.On call

func (*HeadBroadcaster_Expecter[H, BLOCK_HASH]) Start added in v2.15.0

func (_e *HeadBroadcaster_Expecter[H, BLOCK_HASH]) Start(_a0 interface{}) *HeadBroadcaster_Start_Call[H, BLOCK_HASH]

Start is a helper method to define mock.On call

  • _a0 context.Context

func (*HeadBroadcaster_Expecter[H, BLOCK_HASH]) Subscribe added in v2.15.0

func (_e *HeadBroadcaster_Expecter[H, BLOCK_HASH]) Subscribe(callback interface{}) *HeadBroadcaster_Subscribe_Call[H, BLOCK_HASH]

Subscribe is a helper method to define mock.On call

  • callback headtracker.HeadTrackable[H,BLOCK_HASH]

type HeadBroadcaster_HealthReport_Call added in v2.15.0

type HeadBroadcaster_HealthReport_Call[H types.Head[BLOCK_HASH], BLOCK_HASH types.Hashable] struct {
	*mock.Call
}

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

func (*HeadBroadcaster_HealthReport_Call[H, BLOCK_HASH]) Return added in v2.15.0

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

func (*HeadBroadcaster_HealthReport_Call[H, BLOCK_HASH]) Run added in v2.15.0

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

func (*HeadBroadcaster_HealthReport_Call[H, BLOCK_HASH]) RunAndReturn added in v2.15.0

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

type HeadBroadcaster_Name_Call added in v2.15.0

type HeadBroadcaster_Name_Call[H types.Head[BLOCK_HASH], BLOCK_HASH types.Hashable] struct {
	*mock.Call
}

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

func (*HeadBroadcaster_Name_Call[H, BLOCK_HASH]) Return added in v2.15.0

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

func (*HeadBroadcaster_Name_Call[H, BLOCK_HASH]) Run added in v2.15.0

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

func (*HeadBroadcaster_Name_Call[H, BLOCK_HASH]) RunAndReturn added in v2.15.0

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

type HeadBroadcaster_Ready_Call added in v2.15.0

type HeadBroadcaster_Ready_Call[H types.Head[BLOCK_HASH], BLOCK_HASH types.Hashable] struct {
	*mock.Call
}

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

func (*HeadBroadcaster_Ready_Call[H, BLOCK_HASH]) Return added in v2.15.0

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

func (*HeadBroadcaster_Ready_Call[H, BLOCK_HASH]) Run added in v2.15.0

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

func (*HeadBroadcaster_Ready_Call[H, BLOCK_HASH]) RunAndReturn added in v2.15.0

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

type HeadBroadcaster_Start_Call added in v2.15.0

type HeadBroadcaster_Start_Call[H types.Head[BLOCK_HASH], BLOCK_HASH types.Hashable] struct {
	*mock.Call
}

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

func (*HeadBroadcaster_Start_Call[H, BLOCK_HASH]) Return added in v2.15.0

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

func (*HeadBroadcaster_Start_Call[H, BLOCK_HASH]) Run added in v2.15.0

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

func (*HeadBroadcaster_Start_Call[H, BLOCK_HASH]) RunAndReturn added in v2.15.0

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

type HeadBroadcaster_Subscribe_Call added in v2.15.0

type HeadBroadcaster_Subscribe_Call[H types.Head[BLOCK_HASH], BLOCK_HASH types.Hashable] struct {
	*mock.Call
}

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

func (*HeadBroadcaster_Subscribe_Call[H, BLOCK_HASH]) Return added in v2.15.0

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

func (*HeadBroadcaster_Subscribe_Call[H, BLOCK_HASH]) Run added in v2.15.0

func (_c *HeadBroadcaster_Subscribe_Call[H, BLOCK_HASH]) Run(run func(callback headtracker.HeadTrackable[H, BLOCK_HASH])) *HeadBroadcaster_Subscribe_Call[H, BLOCK_HASH]

func (*HeadBroadcaster_Subscribe_Call[H, BLOCK_HASH]) RunAndReturn added in v2.15.0

func (_c *HeadBroadcaster_Subscribe_Call[H, BLOCK_HASH]) RunAndReturn(run func(headtracker.HeadTrackable[H, BLOCK_HASH]) (H, func())) *HeadBroadcaster_Subscribe_Call[H, BLOCK_HASH]

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]) EXPECT added in v2.15.0

func (_m *HeadTrackable[H, BLOCK_HASH]) EXPECT() *HeadTrackable_Expecter[H, BLOCK_HASH]

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 HeadTrackable_Expecter added in v2.15.0

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

func (*HeadTrackable_Expecter[H, BLOCK_HASH]) OnNewLongestChain added in v2.15.0

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

OnNewLongestChain is a helper method to define mock.On call

  • ctx context.Context
  • head H

type HeadTrackable_OnNewLongestChain_Call added in v2.15.0

type HeadTrackable_OnNewLongestChain_Call[H types.Head[BLOCK_HASH], BLOCK_HASH types.Hashable] struct {
	*mock.Call
}

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

func (*HeadTrackable_OnNewLongestChain_Call[H, BLOCK_HASH]) Return added in v2.15.0

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

func (*HeadTrackable_OnNewLongestChain_Call[H, BLOCK_HASH]) Run added in v2.15.0

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

func (*HeadTrackable_OnNewLongestChain_Call[H, BLOCK_HASH]) RunAndReturn added in v2.15.0

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

type HeadTracker

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

HeadTracker is an autogenerated mock type for the HeadTracker type

func NewHeadTracker

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

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

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

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

func (*HeadTracker[H, BLOCK_HASH]) Close

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

Close provides a mock function with given fields:

func (*HeadTracker[H, BLOCK_HASH]) EXPECT added in v2.15.0

func (_m *HeadTracker[H, BLOCK_HASH]) EXPECT() *HeadTracker_Expecter[H, BLOCK_HASH]

func (*HeadTracker[H, BLOCK_HASH]) HealthReport

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

HealthReport provides a mock function with given fields:

func (*HeadTracker[H, BLOCK_HASH]) LatestAndFinalizedBlock added in v2.14.0

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

LatestAndFinalizedBlock provides a mock function with given fields: ctx

func (*HeadTracker[H, BLOCK_HASH]) LatestChain

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

LatestChain provides a mock function with given fields:

func (*HeadTracker[H, BLOCK_HASH]) Name

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

Name provides a mock function with given fields:

func (*HeadTracker[H, BLOCK_HASH]) Ready

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

Ready provides a mock function with given fields:

func (*HeadTracker[H, BLOCK_HASH]) Start

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

Start provides a mock function with given fields: _a0

type HeadTracker_Backfill_Call added in v2.15.0

type HeadTracker_Backfill_Call[H types.Head[BLOCK_HASH], BLOCK_HASH types.Hashable] struct {
	*mock.Call
}

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

func (*HeadTracker_Backfill_Call[H, BLOCK_HASH]) Return added in v2.15.0

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

func (*HeadTracker_Backfill_Call[H, BLOCK_HASH]) Run added in v2.15.0

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

func (*HeadTracker_Backfill_Call[H, BLOCK_HASH]) RunAndReturn added in v2.15.0

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

type HeadTracker_Close_Call added in v2.15.0

type HeadTracker_Close_Call[H types.Head[BLOCK_HASH], BLOCK_HASH types.Hashable] struct {
	*mock.Call
}

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

func (*HeadTracker_Close_Call[H, BLOCK_HASH]) Return added in v2.15.0

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

func (*HeadTracker_Close_Call[H, BLOCK_HASH]) Run added in v2.15.0

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

func (*HeadTracker_Close_Call[H, BLOCK_HASH]) RunAndReturn added in v2.15.0

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

type HeadTracker_Expecter added in v2.15.0

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

func (*HeadTracker_Expecter[H, BLOCK_HASH]) Backfill added in v2.15.0

func (_e *HeadTracker_Expecter[H, BLOCK_HASH]) Backfill(ctx interface{}, headWithChain interface{}) *HeadTracker_Backfill_Call[H, BLOCK_HASH]

Backfill is a helper method to define mock.On call

  • ctx context.Context
  • headWithChain H

func (*HeadTracker_Expecter[H, BLOCK_HASH]) Close added in v2.15.0

func (_e *HeadTracker_Expecter[H, BLOCK_HASH]) Close() *HeadTracker_Close_Call[H, BLOCK_HASH]

Close is a helper method to define mock.On call

func (*HeadTracker_Expecter[H, BLOCK_HASH]) HealthReport added in v2.15.0

func (_e *HeadTracker_Expecter[H, BLOCK_HASH]) HealthReport() *HeadTracker_HealthReport_Call[H, BLOCK_HASH]

HealthReport is a helper method to define mock.On call

func (*HeadTracker_Expecter[H, BLOCK_HASH]) LatestAndFinalizedBlock added in v2.15.0

func (_e *HeadTracker_Expecter[H, BLOCK_HASH]) LatestAndFinalizedBlock(ctx interface{}) *HeadTracker_LatestAndFinalizedBlock_Call[H, BLOCK_HASH]

LatestAndFinalizedBlock is a helper method to define mock.On call

  • ctx context.Context

func (*HeadTracker_Expecter[H, BLOCK_HASH]) LatestChain added in v2.15.0

func (_e *HeadTracker_Expecter[H, BLOCK_HASH]) LatestChain() *HeadTracker_LatestChain_Call[H, BLOCK_HASH]

LatestChain is a helper method to define mock.On call

func (*HeadTracker_Expecter[H, BLOCK_HASH]) Name added in v2.15.0

func (_e *HeadTracker_Expecter[H, BLOCK_HASH]) Name() *HeadTracker_Name_Call[H, BLOCK_HASH]

Name is a helper method to define mock.On call

func (*HeadTracker_Expecter[H, BLOCK_HASH]) Ready added in v2.15.0

func (_e *HeadTracker_Expecter[H, BLOCK_HASH]) Ready() *HeadTracker_Ready_Call[H, BLOCK_HASH]

Ready is a helper method to define mock.On call

func (*HeadTracker_Expecter[H, BLOCK_HASH]) Start added in v2.15.0

func (_e *HeadTracker_Expecter[H, BLOCK_HASH]) Start(_a0 interface{}) *HeadTracker_Start_Call[H, BLOCK_HASH]

Start is a helper method to define mock.On call

  • _a0 context.Context

type HeadTracker_HealthReport_Call added in v2.15.0

type HeadTracker_HealthReport_Call[H types.Head[BLOCK_HASH], BLOCK_HASH types.Hashable] struct {
	*mock.Call
}

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

func (*HeadTracker_HealthReport_Call[H, BLOCK_HASH]) Return added in v2.15.0

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

func (*HeadTracker_HealthReport_Call[H, BLOCK_HASH]) Run added in v2.15.0

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

func (*HeadTracker_HealthReport_Call[H, BLOCK_HASH]) RunAndReturn added in v2.15.0

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

type HeadTracker_LatestAndFinalizedBlock_Call added in v2.15.0

type HeadTracker_LatestAndFinalizedBlock_Call[H types.Head[BLOCK_HASH], BLOCK_HASH types.Hashable] struct {
	*mock.Call
}

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

func (*HeadTracker_LatestAndFinalizedBlock_Call[H, BLOCK_HASH]) Return added in v2.15.0

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

func (*HeadTracker_LatestAndFinalizedBlock_Call[H, BLOCK_HASH]) Run added in v2.15.0

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

func (*HeadTracker_LatestAndFinalizedBlock_Call[H, BLOCK_HASH]) RunAndReturn added in v2.15.0

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

type HeadTracker_LatestChain_Call added in v2.15.0

type HeadTracker_LatestChain_Call[H types.Head[BLOCK_HASH], BLOCK_HASH types.Hashable] struct {
	*mock.Call
}

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

func (*HeadTracker_LatestChain_Call[H, BLOCK_HASH]) Return added in v2.15.0

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

func (*HeadTracker_LatestChain_Call[H, BLOCK_HASH]) Run added in v2.15.0

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

func (*HeadTracker_LatestChain_Call[H, BLOCK_HASH]) RunAndReturn added in v2.15.0

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

type HeadTracker_Name_Call added in v2.15.0

type HeadTracker_Name_Call[H types.Head[BLOCK_HASH], BLOCK_HASH types.Hashable] struct {
	*mock.Call
}

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

func (*HeadTracker_Name_Call[H, BLOCK_HASH]) Return added in v2.15.0

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

func (*HeadTracker_Name_Call[H, BLOCK_HASH]) Run added in v2.15.0

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

func (*HeadTracker_Name_Call[H, BLOCK_HASH]) RunAndReturn added in v2.15.0

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

type HeadTracker_Ready_Call added in v2.15.0

type HeadTracker_Ready_Call[H types.Head[BLOCK_HASH], BLOCK_HASH types.Hashable] struct {
	*mock.Call
}

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

func (*HeadTracker_Ready_Call[H, BLOCK_HASH]) Return added in v2.15.0

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

func (*HeadTracker_Ready_Call[H, BLOCK_HASH]) Run added in v2.15.0

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

func (*HeadTracker_Ready_Call[H, BLOCK_HASH]) RunAndReturn added in v2.15.0

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

type HeadTracker_Start_Call added in v2.15.0

type HeadTracker_Start_Call[H types.Head[BLOCK_HASH], BLOCK_HASH types.Hashable] struct {
	*mock.Call
}

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

func (*HeadTracker_Start_Call[H, BLOCK_HASH]) Return added in v2.15.0

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

func (*HeadTracker_Start_Call[H, BLOCK_HASH]) Run added in v2.15.0

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

func (*HeadTracker_Start_Call[H, BLOCK_HASH]) RunAndReturn added in v2.15.0

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

Jump to

Keyboard shortcuts

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