mocks

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 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 Handler

type Handler struct {
	mock.Mock
}

Handler is an autogenerated mock type for the Handler type

func NewHandler

func NewHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *Handler

NewHandler creates a new instance of Handler. 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 (*Handler) Close

func (_m *Handler) Close()

Close provides a mock function with given fields:

func (*Handler) CreateJob

func (_m *Handler) CreateJob(job *config.ScheduleConfig, schedules []*calendar.Event, permission string) error

CreateJob provides a mock function with given fields: job, schedules, permission

func (*Handler) DisplayJobStatus

func (_m *Handler) DisplayJobStatus(job *config.ScheduleConfig) error

DisplayJobStatus provides a mock function with given fields: job

func (*Handler) DisplayParsedSchedules

func (_m *Handler) DisplayParsedSchedules(command string, events []*calendar.Event)

DisplayParsedSchedules provides a mock function with given fields: command, events

func (*Handler) DisplaySchedules

func (_m *Handler) DisplaySchedules(command string, schedules []string) error

DisplaySchedules provides a mock function with given fields: command, schedules

func (*Handler) DisplayStatus

func (_m *Handler) DisplayStatus(profileName string) error

DisplayStatus provides a mock function with given fields: profileName

func (*Handler) EXPECT

func (_m *Handler) EXPECT() *Handler_Expecter

func (*Handler) Init

func (_m *Handler) Init() error

Init provides a mock function with given fields:

func (*Handler) ParseSchedules

func (_m *Handler) ParseSchedules(schedules []string) ([]*calendar.Event, error)

ParseSchedules provides a mock function with given fields: schedules

func (*Handler) RemoveJob

func (_m *Handler) RemoveJob(job *config.ScheduleConfig, permission string) error

RemoveJob provides a mock function with given fields: job, permission

type Handler_Close_Call

type Handler_Close_Call struct {
	*mock.Call
}

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

func (*Handler_Close_Call) Return

func (_c *Handler_Close_Call) Return() *Handler_Close_Call

func (*Handler_Close_Call) Run

func (_c *Handler_Close_Call) Run(run func()) *Handler_Close_Call

func (*Handler_Close_Call) RunAndReturn

func (_c *Handler_Close_Call) RunAndReturn(run func()) *Handler_Close_Call

type Handler_CreateJob_Call

type Handler_CreateJob_Call struct {
	*mock.Call
}

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

func (*Handler_CreateJob_Call) Return

func (*Handler_CreateJob_Call) Run

func (_c *Handler_CreateJob_Call) Run(run func(job *config.ScheduleConfig, schedules []*calendar.Event, permission string)) *Handler_CreateJob_Call

func (*Handler_CreateJob_Call) RunAndReturn

type Handler_DisplayJobStatus_Call

type Handler_DisplayJobStatus_Call struct {
	*mock.Call
}

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

func (*Handler_DisplayJobStatus_Call) Return

func (*Handler_DisplayJobStatus_Call) Run

func (*Handler_DisplayJobStatus_Call) RunAndReturn

type Handler_DisplayParsedSchedules_Call

type Handler_DisplayParsedSchedules_Call struct {
	*mock.Call
}

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

func (*Handler_DisplayParsedSchedules_Call) Return

func (*Handler_DisplayParsedSchedules_Call) Run

func (*Handler_DisplayParsedSchedules_Call) RunAndReturn

type Handler_DisplaySchedules_Call

type Handler_DisplaySchedules_Call struct {
	*mock.Call
}

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

func (*Handler_DisplaySchedules_Call) Return

func (*Handler_DisplaySchedules_Call) Run

func (_c *Handler_DisplaySchedules_Call) Run(run func(command string, schedules []string)) *Handler_DisplaySchedules_Call

func (*Handler_DisplaySchedules_Call) RunAndReturn

type Handler_DisplayStatus_Call

type Handler_DisplayStatus_Call struct {
	*mock.Call
}

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

func (*Handler_DisplayStatus_Call) Return

func (*Handler_DisplayStatus_Call) Run

func (_c *Handler_DisplayStatus_Call) Run(run func(profileName string)) *Handler_DisplayStatus_Call

func (*Handler_DisplayStatus_Call) RunAndReturn

type Handler_Expecter

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

func (*Handler_Expecter) Close

func (_e *Handler_Expecter) Close() *Handler_Close_Call

Close is a helper method to define mock.On call

func (*Handler_Expecter) CreateJob

func (_e *Handler_Expecter) CreateJob(job interface{}, schedules interface{}, permission interface{}) *Handler_CreateJob_Call

CreateJob is a helper method to define mock.On call

  • job *config.ScheduleConfig
  • schedules []*calendar.Event
  • permission string

func (*Handler_Expecter) DisplayJobStatus

func (_e *Handler_Expecter) DisplayJobStatus(job interface{}) *Handler_DisplayJobStatus_Call

DisplayJobStatus is a helper method to define mock.On call

  • job *config.ScheduleConfig

func (*Handler_Expecter) DisplayParsedSchedules

func (_e *Handler_Expecter) DisplayParsedSchedules(command interface{}, events interface{}) *Handler_DisplayParsedSchedules_Call

DisplayParsedSchedules is a helper method to define mock.On call

  • command string
  • events []*calendar.Event

func (*Handler_Expecter) DisplaySchedules

func (_e *Handler_Expecter) DisplaySchedules(command interface{}, schedules interface{}) *Handler_DisplaySchedules_Call

DisplaySchedules is a helper method to define mock.On call

  • command string
  • schedules []string

func (*Handler_Expecter) DisplayStatus

func (_e *Handler_Expecter) DisplayStatus(profileName interface{}) *Handler_DisplayStatus_Call

DisplayStatus is a helper method to define mock.On call

  • profileName string

func (*Handler_Expecter) Init

func (_e *Handler_Expecter) Init() *Handler_Init_Call

Init is a helper method to define mock.On call

func (*Handler_Expecter) ParseSchedules

func (_e *Handler_Expecter) ParseSchedules(schedules interface{}) *Handler_ParseSchedules_Call

ParseSchedules is a helper method to define mock.On call

  • schedules []string

func (*Handler_Expecter) RemoveJob

func (_e *Handler_Expecter) RemoveJob(job interface{}, permission interface{}) *Handler_RemoveJob_Call

RemoveJob is a helper method to define mock.On call

  • job *config.ScheduleConfig
  • permission string

type Handler_Init_Call

type Handler_Init_Call struct {
	*mock.Call
}

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

func (*Handler_Init_Call) Return

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

func (*Handler_Init_Call) Run

func (_c *Handler_Init_Call) Run(run func()) *Handler_Init_Call

func (*Handler_Init_Call) RunAndReturn

func (_c *Handler_Init_Call) RunAndReturn(run func() error) *Handler_Init_Call

type Handler_ParseSchedules_Call

type Handler_ParseSchedules_Call struct {
	*mock.Call
}

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

func (*Handler_ParseSchedules_Call) Return

func (*Handler_ParseSchedules_Call) Run

func (_c *Handler_ParseSchedules_Call) Run(run func(schedules []string)) *Handler_ParseSchedules_Call

func (*Handler_ParseSchedules_Call) RunAndReturn

type Handler_RemoveJob_Call

type Handler_RemoveJob_Call struct {
	*mock.Call
}

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

func (*Handler_RemoveJob_Call) Return

func (*Handler_RemoveJob_Call) Run

func (_c *Handler_RemoveJob_Call) Run(run func(job *config.ScheduleConfig, permission string)) *Handler_RemoveJob_Call

func (*Handler_RemoveJob_Call) RunAndReturn

Jump to

Keyboard shortcuts

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