mocks

package
v0.68.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskRunner

type TaskRunner struct {
	mock.Mock
}

TaskRunner is an autogenerated mock type for the TaskRunner type

func NewTaskRunner

func NewTaskRunner(t interface {
	mock.TestingT
	Cleanup(func())
}) *TaskRunner

NewTaskRunner creates a new instance of TaskRunner. 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 (*TaskRunner) EXPECT

func (_m *TaskRunner) EXPECT() *TaskRunner_Expecter

func (*TaskRunner) Run

func (_m *TaskRunner) Run(ctx context.Context) error

Run provides a mock function with given fields: ctx

func (*TaskRunner) RunTask

func (_m *TaskRunner) RunTask(task kernel.Module) error

RunTask provides a mock function with given fields: task

type TaskRunner_Expecter

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

func (*TaskRunner_Expecter) Run

func (_e *TaskRunner_Expecter) Run(ctx interface{}) *TaskRunner_Run_Call

Run is a helper method to define mock.On call

  • ctx context.Context

func (*TaskRunner_Expecter) RunTask

func (_e *TaskRunner_Expecter) RunTask(task interface{}) *TaskRunner_RunTask_Call

RunTask is a helper method to define mock.On call

  • task kernel.Module

type TaskRunner_RunTask_Call

type TaskRunner_RunTask_Call struct {
	*mock.Call
}

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

func (*TaskRunner_RunTask_Call) Return

func (*TaskRunner_RunTask_Call) Run

func (*TaskRunner_RunTask_Call) RunAndReturn

func (_c *TaskRunner_RunTask_Call) RunAndReturn(run func(kernel.Module) error) *TaskRunner_RunTask_Call

type TaskRunner_Run_Call

type TaskRunner_Run_Call struct {
	*mock.Call
}

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

func (*TaskRunner_Run_Call) Return

func (*TaskRunner_Run_Call) Run

func (_c *TaskRunner_Run_Call) Run(run func(ctx context.Context)) *TaskRunner_Run_Call

func (*TaskRunner_Run_Call) RunAndReturn

func (_c *TaskRunner_Run_Call) RunAndReturn(run func(context.Context) error) *TaskRunner_Run_Call

Jump to

Keyboard shortcuts

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