mocks

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: 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 FullModule

type FullModule struct {
	mock.Mock
}

FullModule is an autogenerated mock type for the FullModule type

func NewFullModule

func NewFullModule(t interface {
	mock.TestingT
	Cleanup(func())
}) *FullModule

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

func (_m *FullModule) EXPECT() *FullModule_Expecter

func (*FullModule) GetStage

func (_m *FullModule) GetStage() int

GetStage provides a mock function with given fields:

func (*FullModule) IsBackground

func (_m *FullModule) IsBackground() bool

IsBackground provides a mock function with given fields:

func (*FullModule) IsEssential

func (_m *FullModule) IsEssential() bool

IsEssential provides a mock function with given fields:

func (*FullModule) IsHealthy added in v0.10.0

func (_m *FullModule) IsHealthy(ctx context.Context) (bool, error)

IsHealthy provides a mock function with given fields: ctx

func (*FullModule) Run

func (_m *FullModule) Run(ctx context.Context) error

Run provides a mock function with given fields: ctx

type FullModule_Expecter

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

func (*FullModule_Expecter) GetStage

GetStage is a helper method to define mock.On call

func (*FullModule_Expecter) IsBackground

IsBackground is a helper method to define mock.On call

func (*FullModule_Expecter) IsEssential

IsEssential is a helper method to define mock.On call

func (*FullModule_Expecter) IsHealthy added in v0.10.0

func (_e *FullModule_Expecter) IsHealthy(ctx interface{}) *FullModule_IsHealthy_Call

IsHealthy is a helper method to define mock.On call

  • ctx context.Context

func (*FullModule_Expecter) Run

func (_e *FullModule_Expecter) Run(ctx interface{}) *FullModule_Run_Call

Run is a helper method to define mock.On call

  • ctx context.Context

type FullModule_GetStage_Call

type FullModule_GetStage_Call struct {
	*mock.Call
}

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

func (*FullModule_GetStage_Call) Return

func (*FullModule_GetStage_Call) Run

func (*FullModule_GetStage_Call) RunAndReturn

func (_c *FullModule_GetStage_Call) RunAndReturn(run func() int) *FullModule_GetStage_Call

type FullModule_IsBackground_Call

type FullModule_IsBackground_Call struct {
	*mock.Call
}

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

func (*FullModule_IsBackground_Call) Return

func (*FullModule_IsBackground_Call) Run

func (*FullModule_IsBackground_Call) RunAndReturn

func (_c *FullModule_IsBackground_Call) RunAndReturn(run func() bool) *FullModule_IsBackground_Call

type FullModule_IsEssential_Call

type FullModule_IsEssential_Call struct {
	*mock.Call
}

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

func (*FullModule_IsEssential_Call) Return

func (*FullModule_IsEssential_Call) Run

func (*FullModule_IsEssential_Call) RunAndReturn

func (_c *FullModule_IsEssential_Call) RunAndReturn(run func() bool) *FullModule_IsEssential_Call

type FullModule_IsHealthy_Call added in v0.10.0

type FullModule_IsHealthy_Call struct {
	*mock.Call
}

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

func (*FullModule_IsHealthy_Call) Return added in v0.10.0

func (*FullModule_IsHealthy_Call) Run added in v0.10.0

func (*FullModule_IsHealthy_Call) RunAndReturn added in v0.10.0

type FullModule_Run_Call

type FullModule_Run_Call struct {
	*mock.Call
}

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

func (*FullModule_Run_Call) Return

func (*FullModule_Run_Call) Run

func (_c *FullModule_Run_Call) Run(run func(ctx context.Context)) *FullModule_Run_Call

func (*FullModule_Run_Call) RunAndReturn

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

type HealthCheckedModule added in v0.10.0

type HealthCheckedModule struct {
	mock.Mock
}

HealthCheckedModule is an autogenerated mock type for the HealthCheckedModule type

func NewHealthCheckedModule added in v0.10.0

func NewHealthCheckedModule(t interface {
	mock.TestingT
	Cleanup(func())
}) *HealthCheckedModule

NewHealthCheckedModule creates a new instance of HealthCheckedModule. 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 (*HealthCheckedModule) EXPECT added in v0.10.0

func (*HealthCheckedModule) IsHealthy added in v0.10.0

func (_m *HealthCheckedModule) IsHealthy(ctx context.Context) (bool, error)

IsHealthy provides a mock function with given fields: ctx

type HealthCheckedModule_Expecter added in v0.10.0

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

func (*HealthCheckedModule_Expecter) IsHealthy added in v0.10.0

func (_e *HealthCheckedModule_Expecter) IsHealthy(ctx interface{}) *HealthCheckedModule_IsHealthy_Call

IsHealthy is a helper method to define mock.On call

  • ctx context.Context

type HealthCheckedModule_IsHealthy_Call added in v0.10.0

type HealthCheckedModule_IsHealthy_Call struct {
	*mock.Call
}

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

func (*HealthCheckedModule_IsHealthy_Call) Return added in v0.10.0

func (*HealthCheckedModule_IsHealthy_Call) Run added in v0.10.0

func (*HealthCheckedModule_IsHealthy_Call) RunAndReturn added in v0.10.0

type Kernel

type Kernel struct {
	mock.Mock
}

Kernel is an autogenerated mock type for the Kernel type

func NewKernel

func NewKernel(t interface {
	mock.TestingT
	Cleanup(func())
}) *Kernel

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

func (_m *Kernel) EXPECT() *Kernel_Expecter

func (*Kernel) HealthCheck added in v0.10.0

func (_m *Kernel) HealthCheck() kernel.HealthCheckResult

HealthCheck provides a mock function with given fields:

func (*Kernel) Run

func (_m *Kernel) Run()

Run provides a mock function with given fields:

func (*Kernel) Running

func (_m *Kernel) Running() <-chan struct{}

Running provides a mock function with given fields:

func (*Kernel) Stop

func (_m *Kernel) Stop(reason string)

Stop provides a mock function with given fields: reason

type Kernel_Expecter

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

func (*Kernel_Expecter) HealthCheck added in v0.10.0

func (_e *Kernel_Expecter) HealthCheck() *Kernel_HealthCheck_Call

HealthCheck is a helper method to define mock.On call

func (*Kernel_Expecter) Run

func (_e *Kernel_Expecter) Run() *Kernel_Run_Call

Run is a helper method to define mock.On call

func (*Kernel_Expecter) Running

func (_e *Kernel_Expecter) Running() *Kernel_Running_Call

Running is a helper method to define mock.On call

func (*Kernel_Expecter) Stop

func (_e *Kernel_Expecter) Stop(reason interface{}) *Kernel_Stop_Call

Stop is a helper method to define mock.On call

  • reason string

type Kernel_HealthCheck_Call added in v0.10.0

type Kernel_HealthCheck_Call struct {
	*mock.Call
}

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

func (*Kernel_HealthCheck_Call) Return added in v0.10.0

func (*Kernel_HealthCheck_Call) Run added in v0.10.0

func (_c *Kernel_HealthCheck_Call) Run(run func()) *Kernel_HealthCheck_Call

func (*Kernel_HealthCheck_Call) RunAndReturn added in v0.10.0

type Kernel_Run_Call

type Kernel_Run_Call struct {
	*mock.Call
}

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

func (*Kernel_Run_Call) Return

func (_c *Kernel_Run_Call) Return() *Kernel_Run_Call

func (*Kernel_Run_Call) Run

func (_c *Kernel_Run_Call) Run(run func()) *Kernel_Run_Call

func (*Kernel_Run_Call) RunAndReturn

func (_c *Kernel_Run_Call) RunAndReturn(run func()) *Kernel_Run_Call

type Kernel_Running_Call

type Kernel_Running_Call struct {
	*mock.Call
}

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

func (*Kernel_Running_Call) Return

func (_c *Kernel_Running_Call) Return(_a0 <-chan struct{}) *Kernel_Running_Call

func (*Kernel_Running_Call) Run

func (_c *Kernel_Running_Call) Run(run func()) *Kernel_Running_Call

func (*Kernel_Running_Call) RunAndReturn

func (_c *Kernel_Running_Call) RunAndReturn(run func() <-chan struct{}) *Kernel_Running_Call

type Kernel_Stop_Call

type Kernel_Stop_Call struct {
	*mock.Call
}

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

func (*Kernel_Stop_Call) Return

func (_c *Kernel_Stop_Call) Return() *Kernel_Stop_Call

func (*Kernel_Stop_Call) Run

func (_c *Kernel_Stop_Call) Run(run func(reason string)) *Kernel_Stop_Call

func (*Kernel_Stop_Call) RunAndReturn

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

type Module

type Module struct {
	mock.Mock
}

Module is an autogenerated mock type for the Module type

func NewModule

func NewModule(t interface {
	mock.TestingT
	Cleanup(func())
}) *Module

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

func (_m *Module) EXPECT() *Module_Expecter

func (*Module) Run

func (_m *Module) Run(ctx context.Context) error

Run provides a mock function with given fields: ctx

type Module_Expecter

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

func (*Module_Expecter) Run

func (_e *Module_Expecter) Run(ctx interface{}) *Module_Run_Call

Run is a helper method to define mock.On call

  • ctx context.Context

type Module_Run_Call

type Module_Run_Call struct {
	*mock.Call
}

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

func (*Module_Run_Call) Return

func (_c *Module_Run_Call) Return(_a0 error) *Module_Run_Call

func (*Module_Run_Call) Run

func (_c *Module_Run_Call) Run(run func(ctx context.Context)) *Module_Run_Call

func (*Module_Run_Call) RunAndReturn

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

type StagedModule

type StagedModule struct {
	mock.Mock
}

StagedModule is an autogenerated mock type for the StagedModule type

func NewStagedModule

func NewStagedModule(t interface {
	mock.TestingT
	Cleanup(func())
}) *StagedModule

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

func (_m *StagedModule) EXPECT() *StagedModule_Expecter

func (*StagedModule) GetStage

func (_m *StagedModule) GetStage() int

GetStage provides a mock function with given fields:

type StagedModule_Expecter

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

func (*StagedModule_Expecter) GetStage

GetStage is a helper method to define mock.On call

type StagedModule_GetStage_Call

type StagedModule_GetStage_Call struct {
	*mock.Call
}

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

func (*StagedModule_GetStage_Call) Return

func (*StagedModule_GetStage_Call) Run

func (*StagedModule_GetStage_Call) RunAndReturn

func (_c *StagedModule_GetStage_Call) RunAndReturn(run func() int) *StagedModule_GetStage_Call

type TypedModule

type TypedModule struct {
	mock.Mock
}

TypedModule is an autogenerated mock type for the TypedModule type

func NewTypedModule

func NewTypedModule(t interface {
	mock.TestingT
	Cleanup(func())
}) *TypedModule

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

func (_m *TypedModule) EXPECT() *TypedModule_Expecter

func (*TypedModule) IsBackground

func (_m *TypedModule) IsBackground() bool

IsBackground provides a mock function with given fields:

func (*TypedModule) IsEssential

func (_m *TypedModule) IsEssential() bool

IsEssential provides a mock function with given fields:

type TypedModule_Expecter

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

func (*TypedModule_Expecter) IsBackground

IsBackground is a helper method to define mock.On call

func (*TypedModule_Expecter) IsEssential

IsEssential is a helper method to define mock.On call

type TypedModule_IsBackground_Call

type TypedModule_IsBackground_Call struct {
	*mock.Call
}

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

func (*TypedModule_IsBackground_Call) Return

func (*TypedModule_IsBackground_Call) Run

func (*TypedModule_IsBackground_Call) RunAndReturn

type TypedModule_IsEssential_Call

type TypedModule_IsEssential_Call struct {
	*mock.Call
}

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

func (*TypedModule_IsEssential_Call) Return

func (*TypedModule_IsEssential_Call) Run

func (*TypedModule_IsEssential_Call) RunAndReturn

func (_c *TypedModule_IsEssential_Call) RunAndReturn(run func() bool) *TypedModule_IsEssential_Call

Jump to

Keyboard shortcuts

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