mocks

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 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 SequencerControl

type SequencerControl struct {
	mock.Mock
}

SequencerControl is an autogenerated mock type for the SequencerControl type

func NewSequencerControl

func NewSequencerControl(t interface {
	mock.TestingT
	Cleanup(func())
}) *SequencerControl

NewSequencerControl creates a new instance of SequencerControl. 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 (*SequencerControl) EXPECT

func (*SequencerControl) LatestUnsafeBlock

func (_m *SequencerControl) LatestUnsafeBlock(ctx context.Context) (eth.BlockInfo, error)

LatestUnsafeBlock provides a mock function with given fields: ctx

func (*SequencerControl) PostUnsafePayload

func (_m *SequencerControl) PostUnsafePayload(ctx context.Context, payload *eth.ExecutionPayloadEnvelope) error

PostUnsafePayload provides a mock function with given fields: ctx, payload

func (*SequencerControl) SequencerActive

func (_m *SequencerControl) SequencerActive(ctx context.Context) (bool, error)

SequencerActive provides a mock function with given fields: ctx

func (*SequencerControl) StartSequencer

func (_m *SequencerControl) StartSequencer(ctx context.Context, hash common.Hash) error

StartSequencer provides a mock function with given fields: ctx, hash

func (*SequencerControl) StopSequencer

func (_m *SequencerControl) StopSequencer(ctx context.Context) (common.Hash, error)

StopSequencer provides a mock function with given fields: ctx

type SequencerControl_Expecter

type SequencerControl_Expecter struct {
	// contains filtered or unexported fields
}

func (*SequencerControl_Expecter) LatestUnsafeBlock

func (_e *SequencerControl_Expecter) LatestUnsafeBlock(ctx interface{}) *SequencerControl_LatestUnsafeBlock_Call

LatestUnsafeBlock is a helper method to define mock.On call

  • ctx context.Context

func (*SequencerControl_Expecter) PostUnsafePayload

func (_e *SequencerControl_Expecter) PostUnsafePayload(ctx interface{}, payload interface{}) *SequencerControl_PostUnsafePayload_Call

PostUnsafePayload is a helper method to define mock.On call

  • ctx context.Context
  • payload *eth.ExecutionPayloadEnvelope

func (*SequencerControl_Expecter) SequencerActive

func (_e *SequencerControl_Expecter) SequencerActive(ctx interface{}) *SequencerControl_SequencerActive_Call

SequencerActive is a helper method to define mock.On call

  • ctx context.Context

func (*SequencerControl_Expecter) StartSequencer

func (_e *SequencerControl_Expecter) StartSequencer(ctx interface{}, hash interface{}) *SequencerControl_StartSequencer_Call

StartSequencer is a helper method to define mock.On call

  • ctx context.Context
  • hash common.Hash

func (*SequencerControl_Expecter) StopSequencer

func (_e *SequencerControl_Expecter) StopSequencer(ctx interface{}) *SequencerControl_StopSequencer_Call

StopSequencer is a helper method to define mock.On call

  • ctx context.Context

type SequencerControl_LatestUnsafeBlock_Call

type SequencerControl_LatestUnsafeBlock_Call struct {
	*mock.Call
}

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

func (*SequencerControl_LatestUnsafeBlock_Call) Return

func (*SequencerControl_LatestUnsafeBlock_Call) Run

func (*SequencerControl_LatestUnsafeBlock_Call) RunAndReturn

type SequencerControl_PostUnsafePayload_Call

type SequencerControl_PostUnsafePayload_Call struct {
	*mock.Call
}

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

func (*SequencerControl_PostUnsafePayload_Call) Return

func (*SequencerControl_PostUnsafePayload_Call) Run

func (*SequencerControl_PostUnsafePayload_Call) RunAndReturn

type SequencerControl_SequencerActive_Call

type SequencerControl_SequencerActive_Call struct {
	*mock.Call
}

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

func (*SequencerControl_SequencerActive_Call) Return

func (*SequencerControl_SequencerActive_Call) Run

func (*SequencerControl_SequencerActive_Call) RunAndReturn

type SequencerControl_StartSequencer_Call

type SequencerControl_StartSequencer_Call struct {
	*mock.Call
}

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

func (*SequencerControl_StartSequencer_Call) Return

func (*SequencerControl_StartSequencer_Call) Run

func (*SequencerControl_StartSequencer_Call) RunAndReturn

type SequencerControl_StopSequencer_Call

type SequencerControl_StopSequencer_Call struct {
	*mock.Call
}

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

func (*SequencerControl_StopSequencer_Call) Return

func (*SequencerControl_StopSequencer_Call) Run

func (*SequencerControl_StopSequencer_Call) RunAndReturn

Jump to

Keyboard shortcuts

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