Documentation
¶
Index ¶
- type Check
- func (_m *Check) Cleanup()
- func (_m *Check) EXPECT() *Check_Expecter
- func (_m *Check) Init(syscfg *checks.SysProbeConfig, info *checks.HostInfo, oneShot bool) error
- func (_m *Check) IsEnabled() bool
- func (_m *Check) Name() string
- func (_m *Check) Realtime() bool
- func (_m *Check) Run(nextGroupID func() int32, options *checks.RunOptions) (checks.RunResult, error)
- func (_m *Check) ShouldSaveLastRun() bool
- func (_m *Check) SupportsRunOptions() bool
- type Check_Cleanup_Call
- type Check_Expecter
- func (_e *Check_Expecter) Cleanup() *Check_Cleanup_Call
- func (_e *Check_Expecter) Init(syscfg interface{}, info interface{}, oneShot interface{}) *Check_Init_Call
- func (_e *Check_Expecter) IsEnabled() *Check_IsEnabled_Call
- func (_e *Check_Expecter) Name() *Check_Name_Call
- func (_e *Check_Expecter) Realtime() *Check_Realtime_Call
- func (_e *Check_Expecter) Run(nextGroupID interface{}, options interface{}) *Check_Run_Call
- func (_e *Check_Expecter) ShouldSaveLastRun() *Check_ShouldSaveLastRun_Call
- func (_e *Check_Expecter) SupportsRunOptions() *Check_SupportsRunOptions_Call
- type Check_Init_Call
- func (_c *Check_Init_Call) Return(_a0 error) *Check_Init_Call
- func (_c *Check_Init_Call) Run(run func(syscfg *checks.SysProbeConfig, info *checks.HostInfo, oneShot bool)) *Check_Init_Call
- func (_c *Check_Init_Call) RunAndReturn(run func(*checks.SysProbeConfig, *checks.HostInfo, bool) error) *Check_Init_Call
- type Check_IsEnabled_Call
- type Check_Name_Call
- type Check_Realtime_Call
- type Check_Run_Call
- func (_c *Check_Run_Call) Return(_a0 checks.RunResult, _a1 error) *Check_Run_Call
- func (_c *Check_Run_Call) Run(run func(nextGroupID func() int32, options *checks.RunOptions)) *Check_Run_Call
- func (_c *Check_Run_Call) RunAndReturn(run func(func() int32, *checks.RunOptions) (checks.RunResult, error)) *Check_Run_Call
- type Check_ShouldSaveLastRun_Call
- type Check_SupportsRunOptions_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
Check is an autogenerated mock type for the Check type
func NewCheck ¶
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) EXPECT ¶
func (_m *Check) EXPECT() *Check_Expecter
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 ¶
ShouldSaveLastRun provides a mock function with no fields
func (*Check) SupportsRunOptions ¶
SupportsRunOptions provides a mock function with no fields
type Check_Cleanup_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 ¶
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 ¶
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 (_c *Check_IsEnabled_Call) Return(_a0 bool) *Check_IsEnabled_Call
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 ¶
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 ¶
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 ¶
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 ¶
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 (_c *Check_ShouldSaveLastRun_Call) Return(_a0 bool) *Check_ShouldSaveLastRun_Call
func (*Check_ShouldSaveLastRun_Call) Run ¶
func (_c *Check_ShouldSaveLastRun_Call) Run(run func()) *Check_ShouldSaveLastRun_Call
func (*Check_ShouldSaveLastRun_Call) RunAndReturn ¶
func (_c *Check_ShouldSaveLastRun_Call) RunAndReturn(run func() bool) *Check_ShouldSaveLastRun_Call
type Check_SupportsRunOptions_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 (_c *Check_SupportsRunOptions_Call) Return(_a0 bool) *Check_SupportsRunOptions_Call
func (*Check_SupportsRunOptions_Call) Run ¶
func (_c *Check_SupportsRunOptions_Call) Run(run func()) *Check_SupportsRunOptions_Call
func (*Check_SupportsRunOptions_Call) RunAndReturn ¶
func (_c *Check_SupportsRunOptions_Call) RunAndReturn(run func() bool) *Check_SupportsRunOptions_Call