mocks

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 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 MockHealthCheckRegistrar added in v0.5.1

type MockHealthCheckRegistrar struct {
	mock.Mock
}

MockHealthCheckRegistrar is an autogenerated mock type for the HealthCheckRegistrar type

func NewMockHealthCheckRegistrar added in v0.5.1

func NewMockHealthCheckRegistrar(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockHealthCheckRegistrar

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

func (*MockHealthCheckRegistrar) RegisterHealthCheck added in v0.5.1

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

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

type MockHealthCheckRegistrar_Expecter added in v0.5.1

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

func (*MockHealthCheckRegistrar_Expecter) RegisterHealthCheck added in v0.5.1

func (_e *MockHealthCheckRegistrar_Expecter) RegisterHealthCheck(name interface{}, check interface{}) *MockHealthCheckRegistrar_RegisterHealthCheck_Call

RegisterHealthCheck is a helper method to define mock.On call

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

type MockHealthCheckRegistrar_RegisterHealthCheck_Call added in v0.5.1

type MockHealthCheckRegistrar_RegisterHealthCheck_Call struct {
	*mock.Call
}

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

func (*MockHealthCheckRegistrar_RegisterHealthCheck_Call) Return added in v0.5.1

func (*MockHealthCheckRegistrar_RegisterHealthCheck_Call) Run added in v0.5.1

func (*MockHealthCheckRegistrar_RegisterHealthCheck_Call) RunAndReturn added in v0.5.1

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 MockReadinessRegistrar added in v0.5.1

type MockReadinessRegistrar struct {
	mock.Mock
}

MockReadinessRegistrar is an autogenerated mock type for the ReadinessRegistrar type

func NewMockReadinessRegistrar added in v0.5.1

func NewMockReadinessRegistrar(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockReadinessRegistrar

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

func (*MockReadinessRegistrar) RegisterReadinessCheck added in v0.5.1

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

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

type MockReadinessRegistrar_Expecter added in v0.5.1

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

func (*MockReadinessRegistrar_Expecter) RegisterReadinessCheck added in v0.5.1

func (_e *MockReadinessRegistrar_Expecter) RegisterReadinessCheck(name interface{}, check interface{}) *MockReadinessRegistrar_RegisterReadinessCheck_Call

RegisterReadinessCheck is a helper method to define mock.On call

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

type MockReadinessRegistrar_RegisterReadinessCheck_Call added in v0.5.1

type MockReadinessRegistrar_RegisterReadinessCheck_Call struct {
	*mock.Call
}

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

func (*MockReadinessRegistrar_RegisterReadinessCheck_Call) Return added in v0.5.1

func (*MockReadinessRegistrar_RegisterReadinessCheck_Call) Run added in v0.5.1

func (*MockReadinessRegistrar_RegisterReadinessCheck_Call) RunAndReturn added in v0.5.1

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 MockServiceRegistrar

type MockServiceRegistrar struct {
	mock.Mock
}

MockServiceRegistrar is an autogenerated mock type for the ServiceRegistrar type

func NewMockServiceRegistrar

func NewMockServiceRegistrar(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockServiceRegistrar

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

func (*MockServiceRegistrar) RegisterService

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

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

type MockServiceRegistrar_Expecter

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

func (*MockServiceRegistrar_Expecter) RegisterService

func (_e *MockServiceRegistrar_Expecter) RegisterService(name interface{}, svc interface{}) *MockServiceRegistrar_RegisterService_Call

RegisterService is a helper method to define mock.On call

  • name string
  • svc interface{}

type MockServiceRegistrar_RegisterService_Call

type MockServiceRegistrar_RegisterService_Call struct {
	*mock.Call
}

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

func (*MockServiceRegistrar_RegisterService_Call) Return

func (*MockServiceRegistrar_RegisterService_Call) Run

func (*MockServiceRegistrar_RegisterService_Call) RunAndReturn

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 MockStartable

type MockStartable struct {
	mock.Mock
}

MockStartable is an autogenerated mock type for the Startable type

func NewMockStartable

func NewMockStartable(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockStartable

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

func (_m *MockStartable) EXPECT() *MockStartable_Expecter

func (*MockStartable) Start

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

Start provides a mock function with given fields: ctx

type MockStartable_Expecter

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

func (*MockStartable_Expecter) Start

func (_e *MockStartable_Expecter) Start(ctx interface{}) *MockStartable_Start_Call

Start is a helper method to define mock.On call

  • ctx context.Context

type MockStartable_Start_Call

type MockStartable_Start_Call struct {
	*mock.Call
}

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

func (*MockStartable_Start_Call) Return

func (*MockStartable_Start_Call) Run

func (*MockStartable_Start_Call) RunAndReturn

type MockStoppable

type MockStoppable struct {
	mock.Mock
}

MockStoppable is an autogenerated mock type for the Stoppable type

func NewMockStoppable

func NewMockStoppable(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockStoppable

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

func (_m *MockStoppable) EXPECT() *MockStoppable_Expecter

func (*MockStoppable) Stop

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

Stop provides a mock function with given fields: ctx

type MockStoppable_Expecter

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

func (*MockStoppable_Expecter) Stop

func (_e *MockStoppable_Expecter) Stop(ctx interface{}) *MockStoppable_Stop_Call

Stop is a helper method to define mock.On call

  • ctx context.Context

type MockStoppable_Stop_Call

type MockStoppable_Stop_Call struct {
	*mock.Call
}

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

func (*MockStoppable_Stop_Call) Return

func (*MockStoppable_Stop_Call) Run

func (*MockStoppable_Stop_Call) RunAndReturn

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