mocks

package
v0.0.0-...-3543ef8 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	mock.Mock
}

Check is an autogenerated mock type for the Check type

func NewCheck

func NewCheck(t interface {
	mock.TestingT
	Cleanup(func())
}) *Check

NewCheck creates a new instance of Check. 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 (*Check) Cleanup

func (_m *Check) Cleanup()

Cleanup provides a mock function with no fields

func (*Check) EXPECT

func (_m *Check) EXPECT() *Check_Expecter

func (*Check) Init

func (_m *Check) Init(syscfg *checks.SysProbeConfig, info *checks.HostInfo, oneShot bool) error

Init provides a mock function with given fields: syscfg, info, oneShot

func (*Check) IsEnabled

func (_m *Check) IsEnabled() bool

IsEnabled provides a mock function with no fields

func (*Check) Name

func (_m *Check) Name() string

Name provides a mock function with no fields

func (*Check) Realtime

func (_m *Check) Realtime() bool

Realtime provides a mock function with no fields

func (*Check) Run

func (_m *Check) Run(nextGroupID func() int32, options *checks.RunOptions) (checks.RunResult, error)

Run provides a mock function with given fields: nextGroupID, options

func (*Check) ShouldSaveLastRun

func (_m *Check) ShouldSaveLastRun() bool

ShouldSaveLastRun provides a mock function with no fields

func (*Check) SupportsRunOptions

func (_m *Check) SupportsRunOptions() bool

SupportsRunOptions provides a mock function with no fields

type Check_Cleanup_Call

type Check_Cleanup_Call struct {
	*mock.Call
}

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

func (*Check_Cleanup_Call) Return

func (_c *Check_Cleanup_Call) Return() *Check_Cleanup_Call

func (*Check_Cleanup_Call) Run

func (_c *Check_Cleanup_Call) Run(run func()) *Check_Cleanup_Call

func (*Check_Cleanup_Call) RunAndReturn

func (_c *Check_Cleanup_Call) RunAndReturn(run func()) *Check_Cleanup_Call

type Check_Expecter

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

func (*Check_Expecter) Cleanup

func (_e *Check_Expecter) Cleanup() *Check_Cleanup_Call

Cleanup is a helper method to define mock.On call

func (*Check_Expecter) Init

func (_e *Check_Expecter) Init(syscfg interface{}, info interface{}, oneShot interface{}) *Check_Init_Call

Init is a helper method to define mock.On call

  • syscfg *checks.SysProbeConfig
  • info *checks.HostInfo
  • oneShot bool

func (*Check_Expecter) IsEnabled

func (_e *Check_Expecter) IsEnabled() *Check_IsEnabled_Call

IsEnabled is a helper method to define mock.On call

func (*Check_Expecter) Name

func (_e *Check_Expecter) Name() *Check_Name_Call

Name is a helper method to define mock.On call

func (*Check_Expecter) Realtime

func (_e *Check_Expecter) Realtime() *Check_Realtime_Call

Realtime is a helper method to define mock.On call

func (*Check_Expecter) Run

func (_e *Check_Expecter) Run(nextGroupID interface{}, options interface{}) *Check_Run_Call

Run is a helper method to define mock.On call

  • nextGroupID func() int32
  • options *checks.RunOptions

func (*Check_Expecter) ShouldSaveLastRun

func (_e *Check_Expecter) ShouldSaveLastRun() *Check_ShouldSaveLastRun_Call

ShouldSaveLastRun is a helper method to define mock.On call

func (*Check_Expecter) SupportsRunOptions

func (_e *Check_Expecter) SupportsRunOptions() *Check_SupportsRunOptions_Call

SupportsRunOptions is a helper method to define mock.On call

type Check_Init_Call

type Check_Init_Call struct {
	*mock.Call
}

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

func (*Check_Init_Call) Return

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

func (*Check_Init_Call) Run

func (_c *Check_Init_Call) Run(run func(syscfg *checks.SysProbeConfig, info *checks.HostInfo, oneShot bool)) *Check_Init_Call

func (*Check_Init_Call) RunAndReturn

func (_c *Check_Init_Call) RunAndReturn(run func(*checks.SysProbeConfig, *checks.HostInfo, bool) error) *Check_Init_Call

type Check_IsEnabled_Call

type Check_IsEnabled_Call struct {
	*mock.Call
}

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

func (*Check_IsEnabled_Call) Return

func (*Check_IsEnabled_Call) Run

func (_c *Check_IsEnabled_Call) Run(run func()) *Check_IsEnabled_Call

func (*Check_IsEnabled_Call) RunAndReturn

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

type Check_Name_Call

type Check_Name_Call struct {
	*mock.Call
}

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

func (*Check_Name_Call) Return

func (_c *Check_Name_Call) Return(_a0 string) *Check_Name_Call

func (*Check_Name_Call) Run

func (_c *Check_Name_Call) Run(run func()) *Check_Name_Call

func (*Check_Name_Call) RunAndReturn

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

type Check_Realtime_Call

type Check_Realtime_Call struct {
	*mock.Call
}

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

func (*Check_Realtime_Call) Return

func (_c *Check_Realtime_Call) Return(_a0 bool) *Check_Realtime_Call

func (*Check_Realtime_Call) Run

func (_c *Check_Realtime_Call) Run(run func()) *Check_Realtime_Call

func (*Check_Realtime_Call) RunAndReturn

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

type Check_Run_Call

type Check_Run_Call struct {
	*mock.Call
}

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

func (*Check_Run_Call) Return

func (_c *Check_Run_Call) Return(_a0 checks.RunResult, _a1 error) *Check_Run_Call

func (*Check_Run_Call) Run

func (_c *Check_Run_Call) Run(run func(nextGroupID func() int32, options *checks.RunOptions)) *Check_Run_Call

func (*Check_Run_Call) RunAndReturn

func (_c *Check_Run_Call) RunAndReturn(run func(func() int32, *checks.RunOptions) (checks.RunResult, error)) *Check_Run_Call

type Check_ShouldSaveLastRun_Call

type Check_ShouldSaveLastRun_Call struct {
	*mock.Call
}

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

func (*Check_ShouldSaveLastRun_Call) Return

func (*Check_ShouldSaveLastRun_Call) Run

func (*Check_ShouldSaveLastRun_Call) RunAndReturn

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

type Check_SupportsRunOptions_Call

type Check_SupportsRunOptions_Call struct {
	*mock.Call
}

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

func (*Check_SupportsRunOptions_Call) Return

func (*Check_SupportsRunOptions_Call) Run

func (*Check_SupportsRunOptions_Call) RunAndReturn

Jump to

Keyboard shortcuts

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