mocks

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor struct {
	mock.Mock
}

Executor is an autogenerated mock type for the Executor type

func NewExecutor added in v1.15.1

func NewExecutor(t interface {
	mock.TestingT
	Cleanup(func())
}) *Executor

NewExecutor creates a new instance of Executor. 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 (*Executor) EXPECT added in v1.15.1

func (_m *Executor) EXPECT() *Executor_Expecter

func (*Executor) Execute

func (_m *Executor) Execute(ctx context.Context, scheduledTime time.Time, s models.SchedulableEntity) error

Execute provides a mock function with given fields: ctx, scheduledTime, s

type Executor_Execute_Call added in v1.15.1

type Executor_Execute_Call struct {
	*mock.Call
}

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

func (*Executor_Execute_Call) Return added in v1.15.1

func (*Executor_Execute_Call) Run added in v1.15.1

func (_c *Executor_Execute_Call) Run(run func(ctx context.Context, scheduledTime time.Time, s models.SchedulableEntity)) *Executor_Execute_Call

func (*Executor_Execute_Call) RunAndReturn added in v1.15.1

type Executor_Expecter added in v1.15.1

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

func (*Executor_Expecter) Execute added in v1.15.1

func (_e *Executor_Expecter) Execute(ctx interface{}, scheduledTime interface{}, s interface{}) *Executor_Execute_Call

Execute is a helper method to define mock.On call

  • ctx context.Context
  • scheduledTime time.Time
  • s models.SchedulableEntity

Jump to

Keyboard shortcuts

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