mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockController

type MockController struct {
	mock.Mock
}

MockController is an autogenerated mock type for the Controller type

func NewMockController

func NewMockController(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockController

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

func (*MockController) Get

func (_m *MockController) Get(name string) (scheduler.JobInfo, error)

Get provides a mock function with given fields: name

func (*MockController) List

func (_m *MockController) List() []scheduler.JobInfo

List provides a mock function with no fields

func (*MockController) Pause

func (_m *MockController) Pause(name string) error

Pause provides a mock function with given fields: name

func (*MockController) Reschedule

func (_m *MockController) Reschedule(name string, interval time.Duration) error

Reschedule provides a mock function with given fields: name, interval

func (*MockController) Resume

func (_m *MockController) Resume(name string) error

Resume provides a mock function with given fields: name

func (*MockController) RunNow

func (_m *MockController) RunNow(name string) error

RunNow provides a mock function with given fields: name

type MockController_Expecter

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

func (*MockController_Expecter) Get

func (_e *MockController_Expecter) Get(name interface{}) *MockController_Get_Call

Get is a helper method to define mock.On call

  • name string

func (*MockController_Expecter) List

List is a helper method to define mock.On call

func (*MockController_Expecter) Pause

func (_e *MockController_Expecter) Pause(name interface{}) *MockController_Pause_Call

Pause is a helper method to define mock.On call

  • name string

func (*MockController_Expecter) Reschedule

func (_e *MockController_Expecter) Reschedule(name interface{}, interval interface{}) *MockController_Reschedule_Call

Reschedule is a helper method to define mock.On call

  • name string
  • interval time.Duration

func (*MockController_Expecter) Resume

func (_e *MockController_Expecter) Resume(name interface{}) *MockController_Resume_Call

Resume is a helper method to define mock.On call

  • name string

func (*MockController_Expecter) RunNow

func (_e *MockController_Expecter) RunNow(name interface{}) *MockController_RunNow_Call

RunNow is a helper method to define mock.On call

  • name string

type MockController_Get_Call

type MockController_Get_Call struct {
	*mock.Call
}

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

func (*MockController_Get_Call) Return

func (*MockController_Get_Call) Run

func (_c *MockController_Get_Call) Run(run func(name string)) *MockController_Get_Call

func (*MockController_Get_Call) RunAndReturn

type MockController_List_Call

type MockController_List_Call struct {
	*mock.Call
}

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

func (*MockController_List_Call) Return

func (*MockController_List_Call) Run

func (*MockController_List_Call) RunAndReturn

func (_c *MockController_List_Call) RunAndReturn(run func() []scheduler.JobInfo) *MockController_List_Call

type MockController_Pause_Call

type MockController_Pause_Call struct {
	*mock.Call
}

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

func (*MockController_Pause_Call) Return

func (*MockController_Pause_Call) Run

func (*MockController_Pause_Call) RunAndReturn

func (_c *MockController_Pause_Call) RunAndReturn(run func(string) error) *MockController_Pause_Call

type MockController_Reschedule_Call

type MockController_Reschedule_Call struct {
	*mock.Call
}

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

func (*MockController_Reschedule_Call) Return

func (*MockController_Reschedule_Call) Run

func (*MockController_Reschedule_Call) RunAndReturn

type MockController_Resume_Call

type MockController_Resume_Call struct {
	*mock.Call
}

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

func (*MockController_Resume_Call) Return

func (*MockController_Resume_Call) Run

func (*MockController_Resume_Call) RunAndReturn

type MockController_RunNow_Call

type MockController_RunNow_Call struct {
	*mock.Call
}

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

func (*MockController_RunNow_Call) Return

func (*MockController_RunNow_Call) Run

func (*MockController_RunNow_Call) RunAndReturn

Jump to

Keyboard shortcuts

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