mocks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: Apache-2.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 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) EXPECT

func (_m *MockScheduler) EXPECT() *MockScheduler_Expecter

func (*MockScheduler) SelectProplet

func (_mock *MockScheduler) SelectProplet(t task.Task, proplets []proplet.Proplet) (proplet.Proplet, error)

SelectProplet provides a mock function for the type MockScheduler

type MockScheduler_Expecter

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

func (*MockScheduler_Expecter) SelectProplet

func (_e *MockScheduler_Expecter) SelectProplet(t interface{}, proplets interface{}) *MockScheduler_SelectProplet_Call

SelectProplet is a helper method to define mock.On call

  • t task.Task
  • proplets []proplet.Proplet

type MockScheduler_SelectProplet_Call

type MockScheduler_SelectProplet_Call struct {
	*mock.Call
}

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

func (*MockScheduler_SelectProplet_Call) Return

func (*MockScheduler_SelectProplet_Call) Run

func (*MockScheduler_SelectProplet_Call) RunAndReturn

Jump to

Keyboard shortcuts

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