schedule

package
v1.15.7 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 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 Event

type Event struct {
	mock.Mock
}

Event is an autogenerated mock type for the Event type

func NewEvent

func NewEvent(t interface {
	mock.TestingT
	Cleanup(func())
}) *Event

NewEvent creates a new instance of Event. 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 (*Event) At

func (_m *Event) At(time string) schedule.Event

At provides a mock function with given fields: time

func (*Event) Cron

func (_m *Event) Cron(expression string) schedule.Event

Cron provides a mock function with given fields: expression

func (*Event) Daily

func (_m *Event) Daily() schedule.Event

Daily provides a mock function with no fields

func (*Event) DailyAt

func (_m *Event) DailyAt(time string) schedule.Event

DailyAt provides a mock function with given fields: time

func (*Event) DelayIfStillRunning

func (_m *Event) DelayIfStillRunning() schedule.Event

DelayIfStillRunning provides a mock function with no fields

func (*Event) EXPECT

func (_m *Event) EXPECT() *Event_Expecter

func (*Event) EveryFifteenMinutes

func (_m *Event) EveryFifteenMinutes() schedule.Event

EveryFifteenMinutes provides a mock function with no fields

func (*Event) EveryFiveMinutes

func (_m *Event) EveryFiveMinutes() schedule.Event

EveryFiveMinutes provides a mock function with no fields

func (*Event) EveryFourHours

func (_m *Event) EveryFourHours() schedule.Event

EveryFourHours provides a mock function with no fields

func (*Event) EveryFourMinutes

func (_m *Event) EveryFourMinutes() schedule.Event

EveryFourMinutes provides a mock function with no fields

func (*Event) EveryMinute

func (_m *Event) EveryMinute() schedule.Event

EveryMinute provides a mock function with no fields

func (*Event) EverySixHours

func (_m *Event) EverySixHours() schedule.Event

EverySixHours provides a mock function with no fields

func (*Event) EveryTenMinutes

func (_m *Event) EveryTenMinutes() schedule.Event

EveryTenMinutes provides a mock function with no fields

func (*Event) EveryThirtyMinutes

func (_m *Event) EveryThirtyMinutes() schedule.Event

EveryThirtyMinutes provides a mock function with no fields

func (*Event) EveryThreeHours

func (_m *Event) EveryThreeHours() schedule.Event

EveryThreeHours provides a mock function with no fields

func (*Event) EveryThreeMinutes

func (_m *Event) EveryThreeMinutes() schedule.Event

EveryThreeMinutes provides a mock function with no fields

func (*Event) EveryTwoHours

func (_m *Event) EveryTwoHours() schedule.Event

EveryTwoHours provides a mock function with no fields

func (*Event) EveryTwoMinutes

func (_m *Event) EveryTwoMinutes() schedule.Event

EveryTwoMinutes provides a mock function with no fields

func (*Event) GetCallback

func (_m *Event) GetCallback() func()

GetCallback provides a mock function with no fields

func (*Event) GetCommand

func (_m *Event) GetCommand() string

GetCommand provides a mock function with no fields

func (*Event) GetCron

func (_m *Event) GetCron() string

GetCron provides a mock function with no fields

func (*Event) GetDelayIfStillRunning

func (_m *Event) GetDelayIfStillRunning() bool

GetDelayIfStillRunning provides a mock function with no fields

func (*Event) GetName

func (_m *Event) GetName() string

GetName provides a mock function with no fields

func (*Event) GetSkipIfStillRunning

func (_m *Event) GetSkipIfStillRunning() bool

GetSkipIfStillRunning provides a mock function with no fields

func (*Event) Hourly

func (_m *Event) Hourly() schedule.Event

Hourly provides a mock function with no fields

func (*Event) HourlyAt

func (_m *Event) HourlyAt(offset []string) schedule.Event

HourlyAt provides a mock function with given fields: offset

func (*Event) IsOnOneServer

func (_m *Event) IsOnOneServer() bool

IsOnOneServer provides a mock function with no fields

func (*Event) Name

func (_m *Event) Name(name string) schedule.Event

Name provides a mock function with given fields: name

func (*Event) OnOneServer

func (_m *Event) OnOneServer() schedule.Event

OnOneServer provides a mock function with no fields

func (*Event) SkipIfStillRunning

func (_m *Event) SkipIfStillRunning() schedule.Event

SkipIfStillRunning provides a mock function with no fields

type Event_At_Call

type Event_At_Call struct {
	*mock.Call
}

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

func (*Event_At_Call) Return

func (_c *Event_At_Call) Return(_a0 schedule.Event) *Event_At_Call

func (*Event_At_Call) Run

func (_c *Event_At_Call) Run(run func(time string)) *Event_At_Call

func (*Event_At_Call) RunAndReturn

func (_c *Event_At_Call) RunAndReturn(run func(string) schedule.Event) *Event_At_Call

type Event_Cron_Call

type Event_Cron_Call struct {
	*mock.Call
}

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

func (*Event_Cron_Call) Return

func (_c *Event_Cron_Call) Return(_a0 schedule.Event) *Event_Cron_Call

func (*Event_Cron_Call) Run

func (_c *Event_Cron_Call) Run(run func(expression string)) *Event_Cron_Call

func (*Event_Cron_Call) RunAndReturn

func (_c *Event_Cron_Call) RunAndReturn(run func(string) schedule.Event) *Event_Cron_Call

type Event_DailyAt_Call

type Event_DailyAt_Call struct {
	*mock.Call
}

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

func (*Event_DailyAt_Call) Return

func (*Event_DailyAt_Call) Run

func (_c *Event_DailyAt_Call) Run(run func(time string)) *Event_DailyAt_Call

func (*Event_DailyAt_Call) RunAndReturn

func (_c *Event_DailyAt_Call) RunAndReturn(run func(string) schedule.Event) *Event_DailyAt_Call

type Event_Daily_Call

type Event_Daily_Call struct {
	*mock.Call
}

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

func (*Event_Daily_Call) Return

func (*Event_Daily_Call) Run

func (_c *Event_Daily_Call) Run(run func()) *Event_Daily_Call

func (*Event_Daily_Call) RunAndReturn

func (_c *Event_Daily_Call) RunAndReturn(run func() schedule.Event) *Event_Daily_Call

type Event_DelayIfStillRunning_Call

type Event_DelayIfStillRunning_Call struct {
	*mock.Call
}

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

func (*Event_DelayIfStillRunning_Call) Return

func (*Event_DelayIfStillRunning_Call) Run

func (*Event_DelayIfStillRunning_Call) RunAndReturn

type Event_EveryFifteenMinutes_Call

type Event_EveryFifteenMinutes_Call struct {
	*mock.Call
}

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

func (*Event_EveryFifteenMinutes_Call) Return

func (*Event_EveryFifteenMinutes_Call) Run

func (*Event_EveryFifteenMinutes_Call) RunAndReturn

type Event_EveryFiveMinutes_Call

type Event_EveryFiveMinutes_Call struct {
	*mock.Call
}

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

func (*Event_EveryFiveMinutes_Call) Return

func (*Event_EveryFiveMinutes_Call) Run

func (*Event_EveryFiveMinutes_Call) RunAndReturn

type Event_EveryFourHours_Call

type Event_EveryFourHours_Call struct {
	*mock.Call
}

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

func (*Event_EveryFourHours_Call) Return

func (*Event_EveryFourHours_Call) Run

func (*Event_EveryFourHours_Call) RunAndReturn

func (_c *Event_EveryFourHours_Call) RunAndReturn(run func() schedule.Event) *Event_EveryFourHours_Call

type Event_EveryFourMinutes_Call

type Event_EveryFourMinutes_Call struct {
	*mock.Call
}

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

func (*Event_EveryFourMinutes_Call) Return

func (*Event_EveryFourMinutes_Call) Run

func (*Event_EveryFourMinutes_Call) RunAndReturn

type Event_EveryMinute_Call

type Event_EveryMinute_Call struct {
	*mock.Call
}

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

func (*Event_EveryMinute_Call) Return

func (*Event_EveryMinute_Call) Run

func (_c *Event_EveryMinute_Call) Run(run func()) *Event_EveryMinute_Call

func (*Event_EveryMinute_Call) RunAndReturn

func (_c *Event_EveryMinute_Call) RunAndReturn(run func() schedule.Event) *Event_EveryMinute_Call

type Event_EverySixHours_Call

type Event_EverySixHours_Call struct {
	*mock.Call
}

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

func (*Event_EverySixHours_Call) Return

func (*Event_EverySixHours_Call) Run

func (*Event_EverySixHours_Call) RunAndReturn

func (_c *Event_EverySixHours_Call) RunAndReturn(run func() schedule.Event) *Event_EverySixHours_Call

type Event_EveryTenMinutes_Call

type Event_EveryTenMinutes_Call struct {
	*mock.Call
}

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

func (*Event_EveryTenMinutes_Call) Return

func (*Event_EveryTenMinutes_Call) Run

func (*Event_EveryTenMinutes_Call) RunAndReturn

type Event_EveryThirtyMinutes_Call

type Event_EveryThirtyMinutes_Call struct {
	*mock.Call
}

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

func (*Event_EveryThirtyMinutes_Call) Return

func (*Event_EveryThirtyMinutes_Call) Run

func (*Event_EveryThirtyMinutes_Call) RunAndReturn

type Event_EveryThreeHours_Call

type Event_EveryThreeHours_Call struct {
	*mock.Call
}

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

func (*Event_EveryThreeHours_Call) Return

func (*Event_EveryThreeHours_Call) Run

func (*Event_EveryThreeHours_Call) RunAndReturn

type Event_EveryThreeMinutes_Call

type Event_EveryThreeMinutes_Call struct {
	*mock.Call
}

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

func (*Event_EveryThreeMinutes_Call) Return

func (*Event_EveryThreeMinutes_Call) Run

func (*Event_EveryThreeMinutes_Call) RunAndReturn

type Event_EveryTwoHours_Call

type Event_EveryTwoHours_Call struct {
	*mock.Call
}

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

func (*Event_EveryTwoHours_Call) Return

func (*Event_EveryTwoHours_Call) Run

func (*Event_EveryTwoHours_Call) RunAndReturn

func (_c *Event_EveryTwoHours_Call) RunAndReturn(run func() schedule.Event) *Event_EveryTwoHours_Call

type Event_EveryTwoMinutes_Call

type Event_EveryTwoMinutes_Call struct {
	*mock.Call
}

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

func (*Event_EveryTwoMinutes_Call) Return

func (*Event_EveryTwoMinutes_Call) Run

func (*Event_EveryTwoMinutes_Call) RunAndReturn

type Event_Expecter

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

func (*Event_Expecter) At

func (_e *Event_Expecter) At(time interface{}) *Event_At_Call

At is a helper method to define mock.On call

  • time string

func (*Event_Expecter) Cron

func (_e *Event_Expecter) Cron(expression interface{}) *Event_Cron_Call

Cron is a helper method to define mock.On call

  • expression string

func (*Event_Expecter) Daily

func (_e *Event_Expecter) Daily() *Event_Daily_Call

Daily is a helper method to define mock.On call

func (*Event_Expecter) DailyAt

func (_e *Event_Expecter) DailyAt(time interface{}) *Event_DailyAt_Call

DailyAt is a helper method to define mock.On call

  • time string

func (*Event_Expecter) DelayIfStillRunning

func (_e *Event_Expecter) DelayIfStillRunning() *Event_DelayIfStillRunning_Call

DelayIfStillRunning is a helper method to define mock.On call

func (*Event_Expecter) EveryFifteenMinutes

func (_e *Event_Expecter) EveryFifteenMinutes() *Event_EveryFifteenMinutes_Call

EveryFifteenMinutes is a helper method to define mock.On call

func (*Event_Expecter) EveryFiveMinutes

func (_e *Event_Expecter) EveryFiveMinutes() *Event_EveryFiveMinutes_Call

EveryFiveMinutes is a helper method to define mock.On call

func (*Event_Expecter) EveryFourHours

func (_e *Event_Expecter) EveryFourHours() *Event_EveryFourHours_Call

EveryFourHours is a helper method to define mock.On call

func (*Event_Expecter) EveryFourMinutes

func (_e *Event_Expecter) EveryFourMinutes() *Event_EveryFourMinutes_Call

EveryFourMinutes is a helper method to define mock.On call

func (*Event_Expecter) EveryMinute

func (_e *Event_Expecter) EveryMinute() *Event_EveryMinute_Call

EveryMinute is a helper method to define mock.On call

func (*Event_Expecter) EverySixHours

func (_e *Event_Expecter) EverySixHours() *Event_EverySixHours_Call

EverySixHours is a helper method to define mock.On call

func (*Event_Expecter) EveryTenMinutes

func (_e *Event_Expecter) EveryTenMinutes() *Event_EveryTenMinutes_Call

EveryTenMinutes is a helper method to define mock.On call

func (*Event_Expecter) EveryThirtyMinutes

func (_e *Event_Expecter) EveryThirtyMinutes() *Event_EveryThirtyMinutes_Call

EveryThirtyMinutes is a helper method to define mock.On call

func (*Event_Expecter) EveryThreeHours

func (_e *Event_Expecter) EveryThreeHours() *Event_EveryThreeHours_Call

EveryThreeHours is a helper method to define mock.On call

func (*Event_Expecter) EveryThreeMinutes

func (_e *Event_Expecter) EveryThreeMinutes() *Event_EveryThreeMinutes_Call

EveryThreeMinutes is a helper method to define mock.On call

func (*Event_Expecter) EveryTwoHours

func (_e *Event_Expecter) EveryTwoHours() *Event_EveryTwoHours_Call

EveryTwoHours is a helper method to define mock.On call

func (*Event_Expecter) EveryTwoMinutes

func (_e *Event_Expecter) EveryTwoMinutes() *Event_EveryTwoMinutes_Call

EveryTwoMinutes is a helper method to define mock.On call

func (*Event_Expecter) GetCallback

func (_e *Event_Expecter) GetCallback() *Event_GetCallback_Call

GetCallback is a helper method to define mock.On call

func (*Event_Expecter) GetCommand

func (_e *Event_Expecter) GetCommand() *Event_GetCommand_Call

GetCommand is a helper method to define mock.On call

func (*Event_Expecter) GetCron

func (_e *Event_Expecter) GetCron() *Event_GetCron_Call

GetCron is a helper method to define mock.On call

func (*Event_Expecter) GetDelayIfStillRunning

func (_e *Event_Expecter) GetDelayIfStillRunning() *Event_GetDelayIfStillRunning_Call

GetDelayIfStillRunning is a helper method to define mock.On call

func (*Event_Expecter) GetName

func (_e *Event_Expecter) GetName() *Event_GetName_Call

GetName is a helper method to define mock.On call

func (*Event_Expecter) GetSkipIfStillRunning

func (_e *Event_Expecter) GetSkipIfStillRunning() *Event_GetSkipIfStillRunning_Call

GetSkipIfStillRunning is a helper method to define mock.On call

func (*Event_Expecter) Hourly

func (_e *Event_Expecter) Hourly() *Event_Hourly_Call

Hourly is a helper method to define mock.On call

func (*Event_Expecter) HourlyAt

func (_e *Event_Expecter) HourlyAt(offset interface{}) *Event_HourlyAt_Call

HourlyAt is a helper method to define mock.On call

  • offset []string

func (*Event_Expecter) IsOnOneServer

func (_e *Event_Expecter) IsOnOneServer() *Event_IsOnOneServer_Call

IsOnOneServer is a helper method to define mock.On call

func (*Event_Expecter) Name

func (_e *Event_Expecter) Name(name interface{}) *Event_Name_Call

Name is a helper method to define mock.On call

  • name string

func (*Event_Expecter) OnOneServer

func (_e *Event_Expecter) OnOneServer() *Event_OnOneServer_Call

OnOneServer is a helper method to define mock.On call

func (*Event_Expecter) SkipIfStillRunning

func (_e *Event_Expecter) SkipIfStillRunning() *Event_SkipIfStillRunning_Call

SkipIfStillRunning is a helper method to define mock.On call

type Event_GetCallback_Call

type Event_GetCallback_Call struct {
	*mock.Call
}

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

func (*Event_GetCallback_Call) Return

func (_c *Event_GetCallback_Call) Return(_a0 func()) *Event_GetCallback_Call

func (*Event_GetCallback_Call) Run

func (_c *Event_GetCallback_Call) Run(run func()) *Event_GetCallback_Call

func (*Event_GetCallback_Call) RunAndReturn

func (_c *Event_GetCallback_Call) RunAndReturn(run func() func()) *Event_GetCallback_Call

type Event_GetCommand_Call

type Event_GetCommand_Call struct {
	*mock.Call
}

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

func (*Event_GetCommand_Call) Return

func (*Event_GetCommand_Call) Run

func (_c *Event_GetCommand_Call) Run(run func()) *Event_GetCommand_Call

func (*Event_GetCommand_Call) RunAndReturn

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

type Event_GetCron_Call

type Event_GetCron_Call struct {
	*mock.Call
}

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

func (*Event_GetCron_Call) Return

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

func (*Event_GetCron_Call) Run

func (_c *Event_GetCron_Call) Run(run func()) *Event_GetCron_Call

func (*Event_GetCron_Call) RunAndReturn

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

type Event_GetDelayIfStillRunning_Call

type Event_GetDelayIfStillRunning_Call struct {
	*mock.Call
}

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

func (*Event_GetDelayIfStillRunning_Call) Return

func (*Event_GetDelayIfStillRunning_Call) Run

func (*Event_GetDelayIfStillRunning_Call) RunAndReturn

type Event_GetName_Call

type Event_GetName_Call struct {
	*mock.Call
}

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

func (*Event_GetName_Call) Return

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

func (*Event_GetName_Call) Run

func (_c *Event_GetName_Call) Run(run func()) *Event_GetName_Call

func (*Event_GetName_Call) RunAndReturn

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

type Event_GetSkipIfStillRunning_Call

type Event_GetSkipIfStillRunning_Call struct {
	*mock.Call
}

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

func (*Event_GetSkipIfStillRunning_Call) Return

func (*Event_GetSkipIfStillRunning_Call) Run

func (*Event_GetSkipIfStillRunning_Call) RunAndReturn

type Event_HourlyAt_Call

type Event_HourlyAt_Call struct {
	*mock.Call
}

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

func (*Event_HourlyAt_Call) Return

func (*Event_HourlyAt_Call) Run

func (_c *Event_HourlyAt_Call) Run(run func(offset []string)) *Event_HourlyAt_Call

func (*Event_HourlyAt_Call) RunAndReturn

func (_c *Event_HourlyAt_Call) RunAndReturn(run func([]string) schedule.Event) *Event_HourlyAt_Call

type Event_Hourly_Call

type Event_Hourly_Call struct {
	*mock.Call
}

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

func (*Event_Hourly_Call) Return

func (*Event_Hourly_Call) Run

func (_c *Event_Hourly_Call) Run(run func()) *Event_Hourly_Call

func (*Event_Hourly_Call) RunAndReturn

func (_c *Event_Hourly_Call) RunAndReturn(run func() schedule.Event) *Event_Hourly_Call

type Event_IsOnOneServer_Call

type Event_IsOnOneServer_Call struct {
	*mock.Call
}

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

func (*Event_IsOnOneServer_Call) Return

func (*Event_IsOnOneServer_Call) Run

func (*Event_IsOnOneServer_Call) RunAndReturn

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

type Event_Name_Call

type Event_Name_Call struct {
	*mock.Call
}

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

func (*Event_Name_Call) Return

func (_c *Event_Name_Call) Return(_a0 schedule.Event) *Event_Name_Call

func (*Event_Name_Call) Run

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

func (*Event_Name_Call) RunAndReturn

func (_c *Event_Name_Call) RunAndReturn(run func(string) schedule.Event) *Event_Name_Call

type Event_OnOneServer_Call

type Event_OnOneServer_Call struct {
	*mock.Call
}

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

func (*Event_OnOneServer_Call) Return

func (*Event_OnOneServer_Call) Run

func (_c *Event_OnOneServer_Call) Run(run func()) *Event_OnOneServer_Call

func (*Event_OnOneServer_Call) RunAndReturn

func (_c *Event_OnOneServer_Call) RunAndReturn(run func() schedule.Event) *Event_OnOneServer_Call

type Event_SkipIfStillRunning_Call

type Event_SkipIfStillRunning_Call struct {
	*mock.Call
}

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

func (*Event_SkipIfStillRunning_Call) Return

func (*Event_SkipIfStillRunning_Call) Run

func (*Event_SkipIfStillRunning_Call) RunAndReturn

type Schedule

type Schedule struct {
	mock.Mock
}

Schedule is an autogenerated mock type for the Schedule type

func NewSchedule

func NewSchedule(t interface {
	mock.TestingT
	Cleanup(func())
}) *Schedule

NewSchedule creates a new instance of Schedule. 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 (*Schedule) Call

func (_m *Schedule) Call(callback func()) schedule.Event

Call provides a mock function with given fields: callback

func (*Schedule) Command

func (_m *Schedule) Command(command string) schedule.Event

Command provides a mock function with given fields: command

func (*Schedule) EXPECT

func (_m *Schedule) EXPECT() *Schedule_Expecter

func (*Schedule) Register

func (_m *Schedule) Register(events []schedule.Event)

Register provides a mock function with given fields: events

func (*Schedule) Run

func (_m *Schedule) Run()

Run provides a mock function with no fields

func (*Schedule) Shutdown added in v1.15.0

func (_m *Schedule) Shutdown(ctx ...context.Context) error

Shutdown provides a mock function with given fields: ctx

type Schedule_Call_Call

type Schedule_Call_Call struct {
	*mock.Call
}

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

func (*Schedule_Call_Call) Return

func (*Schedule_Call_Call) Run

func (_c *Schedule_Call_Call) Run(run func(callback func())) *Schedule_Call_Call

func (*Schedule_Call_Call) RunAndReturn

func (_c *Schedule_Call_Call) RunAndReturn(run func(func()) schedule.Event) *Schedule_Call_Call

type Schedule_Command_Call

type Schedule_Command_Call struct {
	*mock.Call
}

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

func (*Schedule_Command_Call) Return

func (*Schedule_Command_Call) Run

func (_c *Schedule_Command_Call) Run(run func(command string)) *Schedule_Command_Call

func (*Schedule_Command_Call) RunAndReturn

func (_c *Schedule_Command_Call) RunAndReturn(run func(string) schedule.Event) *Schedule_Command_Call

type Schedule_Expecter

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

func (*Schedule_Expecter) Call

func (_e *Schedule_Expecter) Call(callback interface{}) *Schedule_Call_Call

Call is a helper method to define mock.On call

  • callback func()

func (*Schedule_Expecter) Command

func (_e *Schedule_Expecter) Command(command interface{}) *Schedule_Command_Call

Command is a helper method to define mock.On call

  • command string

func (*Schedule_Expecter) Register

func (_e *Schedule_Expecter) Register(events interface{}) *Schedule_Register_Call

Register is a helper method to define mock.On call

  • events []schedule.Event

func (*Schedule_Expecter) Run

Run is a helper method to define mock.On call

func (*Schedule_Expecter) Shutdown added in v1.15.0

func (_e *Schedule_Expecter) Shutdown(ctx ...interface{}) *Schedule_Shutdown_Call

Shutdown is a helper method to define mock.On call

  • ctx ...context.Context

type Schedule_Register_Call

type Schedule_Register_Call struct {
	*mock.Call
}

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

func (*Schedule_Register_Call) Return

func (*Schedule_Register_Call) Run

func (_c *Schedule_Register_Call) Run(run func(events []schedule.Event)) *Schedule_Register_Call

func (*Schedule_Register_Call) RunAndReturn

func (_c *Schedule_Register_Call) RunAndReturn(run func([]schedule.Event)) *Schedule_Register_Call

type Schedule_Run_Call

type Schedule_Run_Call struct {
	*mock.Call
}

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

func (*Schedule_Run_Call) Return

func (_c *Schedule_Run_Call) Return() *Schedule_Run_Call

func (*Schedule_Run_Call) Run

func (_c *Schedule_Run_Call) Run(run func()) *Schedule_Run_Call

func (*Schedule_Run_Call) RunAndReturn

func (_c *Schedule_Run_Call) RunAndReturn(run func()) *Schedule_Run_Call

type Schedule_Shutdown_Call added in v1.15.0

type Schedule_Shutdown_Call struct {
	*mock.Call
}

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

func (*Schedule_Shutdown_Call) Return added in v1.15.0

func (*Schedule_Shutdown_Call) Run added in v1.15.0

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

func (*Schedule_Shutdown_Call) RunAndReturn added in v1.15.0

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

Jump to

Keyboard shortcuts

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