mocks

package
v12.13.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: GPL-3.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 MockRunner added in v12.8.1

type MockRunner struct {
	mock.Mock
}

MockRunner is an autogenerated mock type for the RunnerInterface type

func NewMockRunner added in v12.8.1

func NewMockRunner(t interface {
	mock.TestingT
	Cleanup(func())
},
) *MockRunner

NewMockRunner creates a new instance of MockRunner. 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 (*MockRunner) EXPECT added in v12.8.1

func (_m *MockRunner) EXPECT() *MockRunner_Expecter

func (*MockRunner) Run added in v12.8.1

func (_mock *MockRunner) Run(ctx context.Context, task *runnerv1.Task)

Run provides a mock function for the type MockRunner

type MockRunner_Expecter added in v12.8.1

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

func (*MockRunner_Expecter) Run added in v12.8.1

func (_e *MockRunner_Expecter) Run(ctx interface{}, task interface{}) *MockRunner_Run_Call

Run is a helper method to define mock.On call

  • ctx context.Context
  • task *runnerv1.Task

type MockRunner_Run_Call added in v12.8.1

type MockRunner_Run_Call struct {
	*mock.Call
}

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

func (*MockRunner_Run_Call) Return added in v12.8.1

func (*MockRunner_Run_Call) Run added in v12.8.1

func (_c *MockRunner_Run_Call) Run(run func(ctx context.Context, task *runnerv1.Task)) *MockRunner_Run_Call

func (*MockRunner_Run_Call) RunAndReturn added in v12.8.1

func (_c *MockRunner_Run_Call) RunAndReturn(run func(ctx context.Context, task *runnerv1.Task)) *MockRunner_Run_Call

Jump to

Keyboard shortcuts

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