mocks

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2026 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 MockConfigProvider

type MockConfigProvider struct {
	mock.Mock
}

MockConfigProvider is an autogenerated mock type for the ConfigProvider type

func NewMockConfigProvider

func NewMockConfigProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockConfigProvider

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

func (*MockConfigProvider) GetConfig

func (_m *MockConfigProvider) GetConfig(target interface{}) error

GetConfig provides a mock function with given fields: target

type MockConfigProvider_Expecter

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

func (*MockConfigProvider_Expecter) GetConfig

func (_e *MockConfigProvider_Expecter) GetConfig(target interface{}) *MockConfigProvider_GetConfig_Call

GetConfig is a helper method to define mock.On call

  • target interface{}

type MockConfigProvider_GetConfig_Call

type MockConfigProvider_GetConfig_Call struct {
	*mock.Call
}

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

func (*MockConfigProvider_GetConfig_Call) Return

func (*MockConfigProvider_GetConfig_Call) Run

func (_c *MockConfigProvider_GetConfig_Call) Run(run func(target interface{})) *MockConfigProvider_GetConfig_Call

func (*MockConfigProvider_GetConfig_Call) RunAndReturn

func (_c *MockConfigProvider_GetConfig_Call) RunAndReturn(run func(interface{}) error) *MockConfigProvider_GetConfig_Call

type MockEventBus

type MockEventBus struct {
	mock.Mock
}

MockEventBus is an autogenerated mock type for the EventBus type

func NewMockEventBus

func NewMockEventBus(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockEventBus

NewMockEventBus creates a new instance of MockEventBus. 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 (*MockEventBus) Close

func (_m *MockEventBus) Close(ctx context.Context) error

Close provides a mock function with given fields: ctx

func (*MockEventBus) EXPECT

func (_m *MockEventBus) EXPECT() *MockEventBus_Expecter

func (*MockEventBus) Publish

func (_m *MockEventBus) Publish(ctx context.Context, topic string, payload []byte) error

Publish provides a mock function with given fields: ctx, topic, payload

func (*MockEventBus) Subscribe

func (_m *MockEventBus) Subscribe(ctx context.Context, topic string, handler modulex.EventHandler) error

Subscribe provides a mock function with given fields: ctx, topic, handler

type MockEventBusProvider

type MockEventBusProvider struct {
	mock.Mock
}

MockEventBusProvider is an autogenerated mock type for the EventBusProvider type

func NewMockEventBusProvider

func NewMockEventBusProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockEventBusProvider

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

func (*MockEventBusProvider) EventBus

func (_m *MockEventBusProvider) EventBus() modulex.EventBus

EventBus provides a mock function with no fields

type MockEventBusProvider_EventBus_Call

type MockEventBusProvider_EventBus_Call struct {
	*mock.Call
}

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

func (*MockEventBusProvider_EventBus_Call) Return

func (*MockEventBusProvider_EventBus_Call) Run

func (*MockEventBusProvider_EventBus_Call) RunAndReturn

type MockEventBusProvider_Expecter

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

func (*MockEventBusProvider_Expecter) EventBus

EventBus is a helper method to define mock.On call

type MockEventBus_Close_Call

type MockEventBus_Close_Call struct {
	*mock.Call
}

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

func (*MockEventBus_Close_Call) Return

func (*MockEventBus_Close_Call) Run

func (*MockEventBus_Close_Call) RunAndReturn

type MockEventBus_Expecter

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

func (*MockEventBus_Expecter) Close

func (_e *MockEventBus_Expecter) Close(ctx interface{}) *MockEventBus_Close_Call

Close is a helper method to define mock.On call

  • ctx context.Context

func (*MockEventBus_Expecter) Publish

func (_e *MockEventBus_Expecter) Publish(ctx interface{}, topic interface{}, payload interface{}) *MockEventBus_Publish_Call

Publish is a helper method to define mock.On call

  • ctx context.Context
  • topic string
  • payload []byte

func (*MockEventBus_Expecter) Subscribe

func (_e *MockEventBus_Expecter) Subscribe(ctx interface{}, topic interface{}, handler interface{}) *MockEventBus_Subscribe_Call

Subscribe is a helper method to define mock.On call

  • ctx context.Context
  • topic string
  • handler modulex.EventHandler

type MockEventBus_Publish_Call

type MockEventBus_Publish_Call struct {
	*mock.Call
}

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

func (*MockEventBus_Publish_Call) Return

func (*MockEventBus_Publish_Call) Run

func (_c *MockEventBus_Publish_Call) Run(run func(ctx context.Context, topic string, payload []byte)) *MockEventBus_Publish_Call

func (*MockEventBus_Publish_Call) RunAndReturn

type MockEventBus_Subscribe_Call

type MockEventBus_Subscribe_Call struct {
	*mock.Call
}

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

func (*MockEventBus_Subscribe_Call) Return

func (*MockEventBus_Subscribe_Call) Run

func (*MockEventBus_Subscribe_Call) RunAndReturn

type MockHealthCheckProvider added in v0.5.1

type MockHealthCheckProvider struct {
	mock.Mock
}

MockHealthCheckProvider is an autogenerated mock type for the HealthCheckProvider type

func NewMockHealthCheckProvider added in v0.5.1

func NewMockHealthCheckProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockHealthCheckProvider

NewMockHealthCheckProvider creates a new instance of MockHealthCheckProvider. 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 (*MockHealthCheckProvider) EXPECT added in v0.5.1

func (*MockHealthCheckProvider) HealthChecks added in v0.5.1

func (_m *MockHealthCheckProvider) HealthChecks() map[string]func(context.Context) error

HealthChecks provides a mock function with no fields

type MockHealthCheckProvider_Expecter added in v0.5.1

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

func (*MockHealthCheckProvider_Expecter) HealthChecks added in v0.5.1

HealthChecks is a helper method to define mock.On call

type MockHealthCheckProvider_HealthChecks_Call added in v0.5.1

type MockHealthCheckProvider_HealthChecks_Call struct {
	*mock.Call
}

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

func (*MockHealthCheckProvider_HealthChecks_Call) Return added in v0.5.1

func (*MockHealthCheckProvider_HealthChecks_Call) Run added in v0.5.1

func (*MockHealthCheckProvider_HealthChecks_Call) RunAndReturn added in v0.5.1

type MockHealthCheckRegisterer added in v0.6.0

type MockHealthCheckRegisterer struct {
	mock.Mock
}

MockHealthCheckRegisterer is an autogenerated mock type for the HealthCheckRegisterer type

func NewMockHealthCheckRegisterer added in v0.6.0

func NewMockHealthCheckRegisterer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockHealthCheckRegisterer

NewMockHealthCheckRegisterer creates a new instance of MockHealthCheckRegisterer. 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 (*MockHealthCheckRegisterer) EXPECT added in v0.6.0

func (*MockHealthCheckRegisterer) RegisterHealthCheck added in v0.6.0

func (_m *MockHealthCheckRegisterer) RegisterHealthCheck(name string, check func(context.Context) error) error

RegisterHealthCheck provides a mock function with given fields: name, check

type MockHealthCheckRegisterer_Expecter added in v0.6.0

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

func (*MockHealthCheckRegisterer_Expecter) RegisterHealthCheck added in v0.6.0

func (_e *MockHealthCheckRegisterer_Expecter) RegisterHealthCheck(name interface{}, check interface{}) *MockHealthCheckRegisterer_RegisterHealthCheck_Call

RegisterHealthCheck is a helper method to define mock.On call

  • name string
  • check func(context.Context) error

type MockHealthCheckRegisterer_RegisterHealthCheck_Call added in v0.6.0

type MockHealthCheckRegisterer_RegisterHealthCheck_Call struct {
	*mock.Call
}

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

func (*MockHealthCheckRegisterer_RegisterHealthCheck_Call) Return added in v0.6.0

func (*MockHealthCheckRegisterer_RegisterHealthCheck_Call) Run added in v0.6.0

func (*MockHealthCheckRegisterer_RegisterHealthCheck_Call) RunAndReturn added in v0.6.0

type MockLoggerProvider

type MockLoggerProvider struct {
	mock.Mock
}

MockLoggerProvider is an autogenerated mock type for the LoggerProvider type

func NewMockLoggerProvider

func NewMockLoggerProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockLoggerProvider

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

func (*MockLoggerProvider) Logger

func (_m *MockLoggerProvider) Logger() *slog.Logger

Logger provides a mock function with no fields

type MockLoggerProvider_Expecter

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

func (*MockLoggerProvider_Expecter) Logger

Logger is a helper method to define mock.On call

type MockLoggerProvider_Logger_Call

type MockLoggerProvider_Logger_Call struct {
	*mock.Call
}

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

func (*MockLoggerProvider_Logger_Call) Return

func (*MockLoggerProvider_Logger_Call) Run

func (*MockLoggerProvider_Logger_Call) RunAndReturn

type MockModule

type MockModule struct {
	mock.Mock
}

MockModule is an autogenerated mock type for the Module type

func NewMockModule

func NewMockModule(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockModule

NewMockModule creates a new instance of MockModule. 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 (*MockModule) DependsOn

func (_m *MockModule) DependsOn() []string

DependsOn provides a mock function with no fields

func (*MockModule) EXPECT

func (_m *MockModule) EXPECT() *MockModule_Expecter

func (*MockModule) Init

func (_m *MockModule) Init(ctx context.Context, reg modulex.Registry) error

Init provides a mock function with given fields: ctx, reg

func (*MockModule) Name

func (_m *MockModule) Name() string

Name provides a mock function with no fields

type MockModule_DependsOn_Call

type MockModule_DependsOn_Call struct {
	*mock.Call
}

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

func (*MockModule_DependsOn_Call) Return

func (*MockModule_DependsOn_Call) Run

func (*MockModule_DependsOn_Call) RunAndReturn

func (_c *MockModule_DependsOn_Call) RunAndReturn(run func() []string) *MockModule_DependsOn_Call

type MockModule_Expecter

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

func (*MockModule_Expecter) DependsOn

DependsOn is a helper method to define mock.On call

func (*MockModule_Expecter) Init

func (_e *MockModule_Expecter) Init(ctx interface{}, reg interface{}) *MockModule_Init_Call

Init is a helper method to define mock.On call

  • ctx context.Context
  • reg modulex.Registry

func (*MockModule_Expecter) Name

Name is a helper method to define mock.On call

type MockModule_Init_Call

type MockModule_Init_Call struct {
	*mock.Call
}

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

func (*MockModule_Init_Call) Return

func (*MockModule_Init_Call) Run

func (*MockModule_Init_Call) RunAndReturn

type MockModule_Name_Call

type MockModule_Name_Call struct {
	*mock.Call
}

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

func (*MockModule_Name_Call) Return

func (*MockModule_Name_Call) Run

func (_c *MockModule_Name_Call) Run(run func()) *MockModule_Name_Call

func (*MockModule_Name_Call) RunAndReturn

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

type MockReadinessProvider added in v0.5.1

type MockReadinessProvider struct {
	mock.Mock
}

MockReadinessProvider is an autogenerated mock type for the ReadinessProvider type

func NewMockReadinessProvider added in v0.5.1

func NewMockReadinessProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockReadinessProvider

NewMockReadinessProvider creates a new instance of MockReadinessProvider. 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 (*MockReadinessProvider) EXPECT added in v0.5.1

func (*MockReadinessProvider) ReadinessChecks added in v0.5.1

func (_m *MockReadinessProvider) ReadinessChecks() map[string]func(context.Context) error

ReadinessChecks provides a mock function with no fields

type MockReadinessProvider_Expecter added in v0.5.1

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

func (*MockReadinessProvider_Expecter) ReadinessChecks added in v0.5.1

ReadinessChecks is a helper method to define mock.On call

type MockReadinessProvider_ReadinessChecks_Call added in v0.5.1

type MockReadinessProvider_ReadinessChecks_Call struct {
	*mock.Call
}

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

func (*MockReadinessProvider_ReadinessChecks_Call) Return added in v0.5.1

func (*MockReadinessProvider_ReadinessChecks_Call) Run added in v0.5.1

func (*MockReadinessProvider_ReadinessChecks_Call) RunAndReturn added in v0.5.1

type MockReadinessRegisterer added in v0.6.0

type MockReadinessRegisterer struct {
	mock.Mock
}

MockReadinessRegisterer is an autogenerated mock type for the ReadinessRegisterer type

func NewMockReadinessRegisterer added in v0.6.0

func NewMockReadinessRegisterer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockReadinessRegisterer

NewMockReadinessRegisterer creates a new instance of MockReadinessRegisterer. 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 (*MockReadinessRegisterer) EXPECT added in v0.6.0

func (*MockReadinessRegisterer) RegisterReadinessCheck added in v0.6.0

func (_m *MockReadinessRegisterer) RegisterReadinessCheck(name string, check func(context.Context) error) error

RegisterReadinessCheck provides a mock function with given fields: name, check

type MockReadinessRegisterer_Expecter added in v0.6.0

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

func (*MockReadinessRegisterer_Expecter) RegisterReadinessCheck added in v0.6.0

func (_e *MockReadinessRegisterer_Expecter) RegisterReadinessCheck(name interface{}, check interface{}) *MockReadinessRegisterer_RegisterReadinessCheck_Call

RegisterReadinessCheck is a helper method to define mock.On call

  • name string
  • check func(context.Context) error

type MockReadinessRegisterer_RegisterReadinessCheck_Call added in v0.6.0

type MockReadinessRegisterer_RegisterReadinessCheck_Call struct {
	*mock.Call
}

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

func (*MockReadinessRegisterer_RegisterReadinessCheck_Call) Return added in v0.6.0

func (*MockReadinessRegisterer_RegisterReadinessCheck_Call) Run added in v0.6.0

func (*MockReadinessRegisterer_RegisterReadinessCheck_Call) RunAndReturn added in v0.6.0

type MockRegistry

type MockRegistry struct {
	mock.Mock
}

MockRegistry is an autogenerated mock type for the Registry type

func NewMockRegistry

func NewMockRegistry(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRegistry

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

func (_m *MockRegistry) EXPECT() *MockRegistry_Expecter

func (*MockRegistry) EventBus

func (_m *MockRegistry) EventBus() modulex.EventBus

EventBus provides a mock function with no fields

func (*MockRegistry) GetConfig

func (_m *MockRegistry) GetConfig(target interface{}) error

GetConfig provides a mock function with given fields: target

func (*MockRegistry) Go

func (_m *MockRegistry) Go(ctx context.Context, taskName string, fn func(context.Context) error) (*modulex.TaskHandle, error)

Go provides a mock function with given fields: ctx, taskName, fn

func (*MockRegistry) HealthChecks added in v0.5.1

func (_m *MockRegistry) HealthChecks() map[string]func(context.Context) error

HealthChecks provides a mock function with no fields

func (*MockRegistry) Logger

func (_m *MockRegistry) Logger() *slog.Logger

Logger provides a mock function with no fields

func (*MockRegistry) ReadinessChecks added in v0.5.1

func (_m *MockRegistry) ReadinessChecks() map[string]func(context.Context) error

ReadinessChecks provides a mock function with no fields

func (*MockRegistry) RegisterHealthCheck added in v0.5.1

func (_m *MockRegistry) RegisterHealthCheck(name string, check func(context.Context) error) error

RegisterHealthCheck provides a mock function with given fields: name, check

func (*MockRegistry) RegisterReadinessCheck added in v0.5.1

func (_m *MockRegistry) RegisterReadinessCheck(name string, check func(context.Context) error) error

RegisterReadinessCheck provides a mock function with given fields: name, check

func (*MockRegistry) RegisterService

func (_m *MockRegistry) RegisterService(name string, svc interface{}) error

RegisterService provides a mock function with given fields: name, svc

func (*MockRegistry) ResolveService

func (_m *MockRegistry) ResolveService(name string) (interface{}, error)

ResolveService provides a mock function with given fields: name

type MockRegistry_EventBus_Call

type MockRegistry_EventBus_Call struct {
	*mock.Call
}

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

func (*MockRegistry_EventBus_Call) Return

func (*MockRegistry_EventBus_Call) Run

func (*MockRegistry_EventBus_Call) RunAndReturn

type MockRegistry_Expecter

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

func (*MockRegistry_Expecter) EventBus

EventBus is a helper method to define mock.On call

func (*MockRegistry_Expecter) GetConfig

func (_e *MockRegistry_Expecter) GetConfig(target interface{}) *MockRegistry_GetConfig_Call

GetConfig is a helper method to define mock.On call

  • target interface{}

func (*MockRegistry_Expecter) Go

func (_e *MockRegistry_Expecter) Go(ctx interface{}, taskName interface{}, fn interface{}) *MockRegistry_Go_Call

Go is a helper method to define mock.On call

  • ctx context.Context
  • taskName string
  • fn func(context.Context) error

func (*MockRegistry_Expecter) HealthChecks added in v0.5.1

HealthChecks is a helper method to define mock.On call

func (*MockRegistry_Expecter) Logger

Logger is a helper method to define mock.On call

func (*MockRegistry_Expecter) ReadinessChecks added in v0.5.1

ReadinessChecks is a helper method to define mock.On call

func (*MockRegistry_Expecter) RegisterHealthCheck added in v0.5.1

func (_e *MockRegistry_Expecter) RegisterHealthCheck(name interface{}, check interface{}) *MockRegistry_RegisterHealthCheck_Call

RegisterHealthCheck is a helper method to define mock.On call

  • name string
  • check func(context.Context) error

func (*MockRegistry_Expecter) RegisterReadinessCheck added in v0.5.1

func (_e *MockRegistry_Expecter) RegisterReadinessCheck(name interface{}, check interface{}) *MockRegistry_RegisterReadinessCheck_Call

RegisterReadinessCheck is a helper method to define mock.On call

  • name string
  • check func(context.Context) error

func (*MockRegistry_Expecter) RegisterService

func (_e *MockRegistry_Expecter) RegisterService(name interface{}, svc interface{}) *MockRegistry_RegisterService_Call

RegisterService is a helper method to define mock.On call

  • name string
  • svc interface{}

func (*MockRegistry_Expecter) ResolveService

func (_e *MockRegistry_Expecter) ResolveService(name interface{}) *MockRegistry_ResolveService_Call

ResolveService is a helper method to define mock.On call

  • name string

type MockRegistry_GetConfig_Call

type MockRegistry_GetConfig_Call struct {
	*mock.Call
}

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

func (*MockRegistry_GetConfig_Call) Return

func (*MockRegistry_GetConfig_Call) Run

func (_c *MockRegistry_GetConfig_Call) Run(run func(target interface{})) *MockRegistry_GetConfig_Call

func (*MockRegistry_GetConfig_Call) RunAndReturn

func (_c *MockRegistry_GetConfig_Call) RunAndReturn(run func(interface{}) error) *MockRegistry_GetConfig_Call

type MockRegistry_Go_Call

type MockRegistry_Go_Call struct {
	*mock.Call
}

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

func (*MockRegistry_Go_Call) Return

func (*MockRegistry_Go_Call) Run

func (_c *MockRegistry_Go_Call) Run(run func(ctx context.Context, taskName string, fn func(context.Context) error)) *MockRegistry_Go_Call

func (*MockRegistry_Go_Call) RunAndReturn

type MockRegistry_HealthChecks_Call added in v0.5.1

type MockRegistry_HealthChecks_Call struct {
	*mock.Call
}

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

func (*MockRegistry_HealthChecks_Call) Return added in v0.5.1

func (*MockRegistry_HealthChecks_Call) Run added in v0.5.1

func (*MockRegistry_HealthChecks_Call) RunAndReturn added in v0.5.1

type MockRegistry_Logger_Call

type MockRegistry_Logger_Call struct {
	*mock.Call
}

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

func (*MockRegistry_Logger_Call) Return

func (*MockRegistry_Logger_Call) Run

func (*MockRegistry_Logger_Call) RunAndReturn

func (_c *MockRegistry_Logger_Call) RunAndReturn(run func() *slog.Logger) *MockRegistry_Logger_Call

type MockRegistry_ReadinessChecks_Call added in v0.5.1

type MockRegistry_ReadinessChecks_Call struct {
	*mock.Call
}

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

func (*MockRegistry_ReadinessChecks_Call) Return added in v0.5.1

func (*MockRegistry_ReadinessChecks_Call) Run added in v0.5.1

func (*MockRegistry_ReadinessChecks_Call) RunAndReturn added in v0.5.1

type MockRegistry_RegisterHealthCheck_Call added in v0.5.1

type MockRegistry_RegisterHealthCheck_Call struct {
	*mock.Call
}

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

func (*MockRegistry_RegisterHealthCheck_Call) Return added in v0.5.1

func (*MockRegistry_RegisterHealthCheck_Call) Run added in v0.5.1

func (*MockRegistry_RegisterHealthCheck_Call) RunAndReturn added in v0.5.1

type MockRegistry_RegisterReadinessCheck_Call added in v0.5.1

type MockRegistry_RegisterReadinessCheck_Call struct {
	*mock.Call
}

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

func (*MockRegistry_RegisterReadinessCheck_Call) Return added in v0.5.1

func (*MockRegistry_RegisterReadinessCheck_Call) Run added in v0.5.1

func (*MockRegistry_RegisterReadinessCheck_Call) RunAndReturn added in v0.5.1

type MockRegistry_RegisterService_Call

type MockRegistry_RegisterService_Call struct {
	*mock.Call
}

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

func (*MockRegistry_RegisterService_Call) Return

func (*MockRegistry_RegisterService_Call) Run

func (_c *MockRegistry_RegisterService_Call) Run(run func(name string, svc interface{})) *MockRegistry_RegisterService_Call

func (*MockRegistry_RegisterService_Call) RunAndReturn

func (_c *MockRegistry_RegisterService_Call) RunAndReturn(run func(string, interface{}) error) *MockRegistry_RegisterService_Call

type MockRegistry_ResolveService_Call

type MockRegistry_ResolveService_Call struct {
	*mock.Call
}

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

func (*MockRegistry_ResolveService_Call) Return

func (*MockRegistry_ResolveService_Call) Run

func (*MockRegistry_ResolveService_Call) RunAndReturn

func (_c *MockRegistry_ResolveService_Call) RunAndReturn(run func(string) (interface{}, error)) *MockRegistry_ResolveService_Call

type MockServiceRegisterer added in v0.6.0

type MockServiceRegisterer struct {
	mock.Mock
}

MockServiceRegisterer is an autogenerated mock type for the ServiceRegisterer type

func NewMockServiceRegisterer added in v0.6.0

func NewMockServiceRegisterer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockServiceRegisterer

NewMockServiceRegisterer creates a new instance of MockServiceRegisterer. 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 (*MockServiceRegisterer) EXPECT added in v0.6.0

func (*MockServiceRegisterer) RegisterService added in v0.6.0

func (_m *MockServiceRegisterer) RegisterService(name string, svc interface{}) error

RegisterService provides a mock function with given fields: name, svc

type MockServiceRegisterer_Expecter added in v0.6.0

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

func (*MockServiceRegisterer_Expecter) RegisterService added in v0.6.0

func (_e *MockServiceRegisterer_Expecter) RegisterService(name interface{}, svc interface{}) *MockServiceRegisterer_RegisterService_Call

RegisterService is a helper method to define mock.On call

  • name string
  • svc interface{}

type MockServiceRegisterer_RegisterService_Call added in v0.6.0

type MockServiceRegisterer_RegisterService_Call struct {
	*mock.Call
}

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

func (*MockServiceRegisterer_RegisterService_Call) Return added in v0.6.0

func (*MockServiceRegisterer_RegisterService_Call) Run added in v0.6.0

func (*MockServiceRegisterer_RegisterService_Call) RunAndReturn added in v0.6.0

type MockServiceRegistry

type MockServiceRegistry struct {
	mock.Mock
}

MockServiceRegistry is an autogenerated mock type for the ServiceRegistry type

func NewMockServiceRegistry

func NewMockServiceRegistry(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockServiceRegistry

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

func (*MockServiceRegistry) RegisterService

func (_m *MockServiceRegistry) RegisterService(name string, svc interface{}) error

RegisterService provides a mock function with given fields: name, svc

func (*MockServiceRegistry) ResolveService

func (_m *MockServiceRegistry) ResolveService(name string) (interface{}, error)

ResolveService provides a mock function with given fields: name

type MockServiceRegistry_Expecter

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

func (*MockServiceRegistry_Expecter) RegisterService

func (_e *MockServiceRegistry_Expecter) RegisterService(name interface{}, svc interface{}) *MockServiceRegistry_RegisterService_Call

RegisterService is a helper method to define mock.On call

  • name string
  • svc interface{}

func (*MockServiceRegistry_Expecter) ResolveService

func (_e *MockServiceRegistry_Expecter) ResolveService(name interface{}) *MockServiceRegistry_ResolveService_Call

ResolveService is a helper method to define mock.On call

  • name string

type MockServiceRegistry_RegisterService_Call

type MockServiceRegistry_RegisterService_Call struct {
	*mock.Call
}

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

func (*MockServiceRegistry_RegisterService_Call) Return

func (*MockServiceRegistry_RegisterService_Call) Run

func (*MockServiceRegistry_RegisterService_Call) RunAndReturn

type MockServiceRegistry_ResolveService_Call

type MockServiceRegistry_ResolveService_Call struct {
	*mock.Call
}

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

func (*MockServiceRegistry_ResolveService_Call) Return

func (*MockServiceRegistry_ResolveService_Call) Run

func (*MockServiceRegistry_ResolveService_Call) RunAndReturn

type MockServiceResolver

type MockServiceResolver struct {
	mock.Mock
}

MockServiceResolver is an autogenerated mock type for the ServiceResolver type

func NewMockServiceResolver

func NewMockServiceResolver(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockServiceResolver

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

func (*MockServiceResolver) ResolveService

func (_m *MockServiceResolver) ResolveService(name string) (interface{}, error)

ResolveService provides a mock function with given fields: name

type MockServiceResolver_Expecter

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

func (*MockServiceResolver_Expecter) ResolveService

func (_e *MockServiceResolver_Expecter) ResolveService(name interface{}) *MockServiceResolver_ResolveService_Call

ResolveService is a helper method to define mock.On call

  • name string

type MockServiceResolver_ResolveService_Call

type MockServiceResolver_ResolveService_Call struct {
	*mock.Call
}

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

func (*MockServiceResolver_ResolveService_Call) Return

func (*MockServiceResolver_ResolveService_Call) Run

func (*MockServiceResolver_ResolveService_Call) RunAndReturn

type MockStarter added in v0.6.0

type MockStarter struct {
	mock.Mock
}

MockStarter is an autogenerated mock type for the Starter type

func NewMockStarter added in v0.6.0

func NewMockStarter(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockStarter

NewMockStarter creates a new instance of MockStarter. 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 (*MockStarter) EXPECT added in v0.6.0

func (_m *MockStarter) EXPECT() *MockStarter_Expecter

func (*MockStarter) Start added in v0.6.0

func (_m *MockStarter) Start(ctx context.Context) error

Start provides a mock function with given fields: ctx

type MockStarter_Expecter added in v0.6.0

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

func (*MockStarter_Expecter) Start added in v0.6.0

func (_e *MockStarter_Expecter) Start(ctx interface{}) *MockStarter_Start_Call

Start is a helper method to define mock.On call

  • ctx context.Context

type MockStarter_Start_Call added in v0.6.0

type MockStarter_Start_Call struct {
	*mock.Call
}

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

func (*MockStarter_Start_Call) Return added in v0.6.0

func (*MockStarter_Start_Call) Run added in v0.6.0

func (*MockStarter_Start_Call) RunAndReturn added in v0.6.0

func (_c *MockStarter_Start_Call) RunAndReturn(run func(context.Context) error) *MockStarter_Start_Call

type MockStopper added in v0.6.0

type MockStopper struct {
	mock.Mock
}

MockStopper is an autogenerated mock type for the Stopper type

func NewMockStopper added in v0.6.0

func NewMockStopper(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockStopper

NewMockStopper creates a new instance of MockStopper. 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 (*MockStopper) EXPECT added in v0.6.0

func (_m *MockStopper) EXPECT() *MockStopper_Expecter

func (*MockStopper) Stop added in v0.6.0

func (_m *MockStopper) Stop(ctx context.Context) error

Stop provides a mock function with given fields: ctx

type MockStopper_Expecter added in v0.6.0

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

func (*MockStopper_Expecter) Stop added in v0.6.0

func (_e *MockStopper_Expecter) Stop(ctx interface{}) *MockStopper_Stop_Call

Stop is a helper method to define mock.On call

  • ctx context.Context

type MockStopper_Stop_Call added in v0.6.0

type MockStopper_Stop_Call struct {
	*mock.Call
}

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

func (*MockStopper_Stop_Call) Return added in v0.6.0

func (*MockStopper_Stop_Call) Run added in v0.6.0

func (*MockStopper_Stop_Call) RunAndReturn added in v0.6.0

func (_c *MockStopper_Stop_Call) RunAndReturn(run func(context.Context) error) *MockStopper_Stop_Call

type MockTaskSpawner

type MockTaskSpawner struct {
	mock.Mock
}

MockTaskSpawner is an autogenerated mock type for the TaskSpawner type

func NewMockTaskSpawner

func NewMockTaskSpawner(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTaskSpawner

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

func (*MockTaskSpawner) Go

func (_m *MockTaskSpawner) Go(ctx context.Context, taskName string, fn func(context.Context) error) (*modulex.TaskHandle, error)

Go provides a mock function with given fields: ctx, taskName, fn

type MockTaskSpawner_Expecter

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

func (*MockTaskSpawner_Expecter) Go

func (_e *MockTaskSpawner_Expecter) Go(ctx interface{}, taskName interface{}, fn interface{}) *MockTaskSpawner_Go_Call

Go is a helper method to define mock.On call

  • ctx context.Context
  • taskName string
  • fn func(context.Context) error

type MockTaskSpawner_Go_Call

type MockTaskSpawner_Go_Call struct {
	*mock.Call
}

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

func (*MockTaskSpawner_Go_Call) Return

func (*MockTaskSpawner_Go_Call) Run

func (_c *MockTaskSpawner_Go_Call) Run(run func(ctx context.Context, taskName string, fn func(context.Context) error)) *MockTaskSpawner_Go_Call

func (*MockTaskSpawner_Go_Call) RunAndReturn

Jump to

Keyboard shortcuts

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