mocks

package
v1.13.10 Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: MIT Imports: 2 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 mockConstructorTestingTNewEvent) *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.

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 given 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 given fields:

func (*Event) EveryFifteenMinutes

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

EveryFifteenMinutes provides a mock function with given fields:

func (*Event) EveryFiveMinutes

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

EveryFiveMinutes provides a mock function with given fields:

func (*Event) EveryFourHours

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

EveryFourHours provides a mock function with given fields:

func (*Event) EveryFourMinutes

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

EveryFourMinutes provides a mock function with given fields:

func (*Event) EveryMinute

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

EveryMinute provides a mock function with given fields:

func (*Event) EverySixHours

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

EverySixHours provides a mock function with given fields:

func (*Event) EveryTenMinutes

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

EveryTenMinutes provides a mock function with given fields:

func (*Event) EveryThirtyMinutes

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

EveryThirtyMinutes provides a mock function with given fields:

func (*Event) EveryThreeHours

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

EveryThreeHours provides a mock function with given fields:

func (*Event) EveryThreeMinutes

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

EveryThreeMinutes provides a mock function with given fields:

func (*Event) EveryTwoHours

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

EveryTwoHours provides a mock function with given fields:

func (*Event) EveryTwoMinutes

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

EveryTwoMinutes provides a mock function with given fields:

func (*Event) GetCallback

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

GetCallback provides a mock function with given fields:

func (*Event) GetCommand

func (_m *Event) GetCommand() string

GetCommand provides a mock function with given fields:

func (*Event) GetCron

func (_m *Event) GetCron() string

GetCron provides a mock function with given fields:

func (*Event) GetDelayIfStillRunning

func (_m *Event) GetDelayIfStillRunning() bool

GetDelayIfStillRunning provides a mock function with given fields:

func (*Event) GetName added in v1.13.0

func (_m *Event) GetName() string

GetName provides a mock function with given fields:

func (*Event) GetSkipIfStillRunning

func (_m *Event) GetSkipIfStillRunning() bool

GetSkipIfStillRunning provides a mock function with given fields:

func (*Event) Hourly

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

Hourly provides a mock function with given fields:

func (*Event) HourlyAt

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

HourlyAt provides a mock function with given fields: offset

func (*Event) IsOnOneServer added in v1.13.0

func (_m *Event) IsOnOneServer() bool

IsOnOneServer provides a mock function with given fields:

func (*Event) Name added in v1.13.0

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

Name provides a mock function with given fields: name

func (*Event) OnOneServer added in v1.13.0

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

OnOneServer provides a mock function with given fields:

func (*Event) SkipIfStillRunning

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

SkipIfStillRunning provides a mock function with given fields:

type Schedule

type Schedule struct {
	mock.Mock
}

Schedule is an autogenerated mock type for the Schedule type

func NewSchedule

func NewSchedule(t mockConstructorTestingTNewSchedule) *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.

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) 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 given fields:

Jump to

Keyboard shortcuts

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