common

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockScheduler

type MockScheduler struct {
	mock.Mock
}

MockScheduler is an autogenerated mock type for the Scheduler type

func NewMockScheduler

func NewMockScheduler(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockScheduler

NewMockScheduler creates a new instance of MockScheduler. 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 (*MockScheduler) CreateOrUpdateTask

func (_m *MockScheduler) CreateOrUpdateTask(tag string, date time.Time, task func() error) error

CreateOrUpdateTask provides a mock function with given fields: tag, date, task

func (*MockScheduler) DeleteTask

func (_m *MockScheduler) DeleteTask(tag string) error

DeleteTask provides a mock function with given fields: tag

func (*MockScheduler) EXPECT

func (_m *MockScheduler) EXPECT() *MockScheduler_Expecter

type MockScheduler_CreateOrUpdateTask_Call

type MockScheduler_CreateOrUpdateTask_Call struct {
	*mock.Call
}

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

func (*MockScheduler_CreateOrUpdateTask_Call) Return

func (*MockScheduler_CreateOrUpdateTask_Call) Run

func (*MockScheduler_CreateOrUpdateTask_Call) RunAndReturn

type MockScheduler_DeleteTask_Call

type MockScheduler_DeleteTask_Call struct {
	*mock.Call
}

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

func (*MockScheduler_DeleteTask_Call) Return

func (*MockScheduler_DeleteTask_Call) Run

func (*MockScheduler_DeleteTask_Call) RunAndReturn

type MockScheduler_Expecter

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

func (*MockScheduler_Expecter) CreateOrUpdateTask

func (_e *MockScheduler_Expecter) CreateOrUpdateTask(tag interface{}, date interface{}, task interface{}) *MockScheduler_CreateOrUpdateTask_Call

CreateOrUpdateTask is a helper method to define mock.On call

  • tag string
  • date time.Time
  • task func() error

func (*MockScheduler_Expecter) DeleteTask

func (_e *MockScheduler_Expecter) DeleteTask(tag interface{}) *MockScheduler_DeleteTask_Call

DeleteTask is a helper method to define mock.On call

  • tag string

Jump to

Keyboard shortcuts

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