mocks

package
v0.10.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EpochNotifier

type EpochNotifier struct {
	mock.Mock
}

EpochNotifier is an autogenerated mock type for the EpochNotifier type

func NewEpochNotifier

func NewEpochNotifier(t interface {
	mock.TestingT
	Cleanup(func())
}) *EpochNotifier

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

func (_m *EpochNotifier) EXPECT() *EpochNotifier_Expecter

func (*EpochNotifier) ForcePublishEpochEvent

func (_m *EpochNotifier) ForcePublishEpochEvent()

ForcePublishEpochEvent provides a mock function with no fields

func (*EpochNotifier) GetEpochStatus

func (_m *EpochNotifier) GetEpochStatus() types.EpochStatus

GetEpochStatus provides a mock function with no fields

func (*EpochNotifier) Start

func (_m *EpochNotifier) Start(ctx context.Context)

Start provides a mock function with given fields: ctx

func (*EpochNotifier) String

func (_m *EpochNotifier) String() string

String provides a mock function with no fields

func (*EpochNotifier) Subscribe

func (_m *EpochNotifier) Subscribe(id string) <-chan types.EpochEvent

Subscribe provides a mock function with given fields: id

type EpochNotifier_Expecter

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

func (*EpochNotifier_Expecter) ForcePublishEpochEvent

ForcePublishEpochEvent is a helper method to define mock.On call

func (*EpochNotifier_Expecter) GetEpochStatus

GetEpochStatus is a helper method to define mock.On call

func (*EpochNotifier_Expecter) Start

func (_e *EpochNotifier_Expecter) Start(ctx interface{}) *EpochNotifier_Start_Call

Start is a helper method to define mock.On call

  • ctx context.Context

func (*EpochNotifier_Expecter) String

String is a helper method to define mock.On call

func (*EpochNotifier_Expecter) Subscribe

func (_e *EpochNotifier_Expecter) Subscribe(id interface{}) *EpochNotifier_Subscribe_Call

Subscribe is a helper method to define mock.On call

  • id string

type EpochNotifier_ForcePublishEpochEvent_Call

type EpochNotifier_ForcePublishEpochEvent_Call struct {
	*mock.Call
}

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

func (*EpochNotifier_ForcePublishEpochEvent_Call) Return

func (*EpochNotifier_ForcePublishEpochEvent_Call) Run

func (*EpochNotifier_ForcePublishEpochEvent_Call) RunAndReturn

type EpochNotifier_GetEpochStatus_Call

type EpochNotifier_GetEpochStatus_Call struct {
	*mock.Call
}

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

func (*EpochNotifier_GetEpochStatus_Call) Return

func (*EpochNotifier_GetEpochStatus_Call) Run

func (*EpochNotifier_GetEpochStatus_Call) RunAndReturn

type EpochNotifier_Start_Call

type EpochNotifier_Start_Call struct {
	*mock.Call
}

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

func (*EpochNotifier_Start_Call) Return

func (*EpochNotifier_Start_Call) Run

func (*EpochNotifier_Start_Call) RunAndReturn

type EpochNotifier_String_Call

type EpochNotifier_String_Call struct {
	*mock.Call
}

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

func (*EpochNotifier_String_Call) Return

func (*EpochNotifier_String_Call) Run

func (*EpochNotifier_String_Call) RunAndReturn

func (_c *EpochNotifier_String_Call) RunAndReturn(run func() string) *EpochNotifier_String_Call

type EpochNotifier_Subscribe_Call

type EpochNotifier_Subscribe_Call struct {
	*mock.Call
}

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

func (*EpochNotifier_Subscribe_Call) Return

func (*EpochNotifier_Subscribe_Call) Run

func (*EpochNotifier_Subscribe_Call) RunAndReturn

Jump to

Keyboard shortcuts

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