mockbenchmark

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 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 Launcher

type Launcher struct {
	mock.Mock
}

Launcher is an autogenerated mock type for the Launcher type

func NewLauncher

func NewLauncher(t interface {
	mock.TestingT
	Cleanup(func())
}) *Launcher

NewLauncher creates a new instance of Launcher. 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 (*Launcher) Cancel

func (_m *Launcher) Cancel(ctx context.Context, name string) error

Cancel provides a mock function with given fields: ctx, name

func (*Launcher) EXPECT

func (_m *Launcher) EXPECT() *Launcher_Expecter

func (*Launcher) GetJobName

func (_m *Launcher) GetJobName(name string) string

GetJobName provides a mock function with given fields: name

func (*Launcher) Launch

func (_m *Launcher) Launch(ctx context.Context, name string, _a2 *benchmark.Benchmark) error

Launch provides a mock function with given fields: ctx, name, _a2

type Launcher_Cancel_Call

type Launcher_Cancel_Call struct {
	*mock.Call
}

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

func (*Launcher_Cancel_Call) Return

func (*Launcher_Cancel_Call) Run

func (_c *Launcher_Cancel_Call) Run(run func(ctx context.Context, name string)) *Launcher_Cancel_Call

func (*Launcher_Cancel_Call) RunAndReturn

func (_c *Launcher_Cancel_Call) RunAndReturn(run func(context.Context, string) error) *Launcher_Cancel_Call

type Launcher_Expecter

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

func (*Launcher_Expecter) Cancel

func (_e *Launcher_Expecter) Cancel(ctx interface{}, name interface{}) *Launcher_Cancel_Call

Cancel is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*Launcher_Expecter) GetJobName

func (_e *Launcher_Expecter) GetJobName(name interface{}) *Launcher_GetJobName_Call

GetJobName is a helper method to define mock.On call

  • name string

func (*Launcher_Expecter) Launch

func (_e *Launcher_Expecter) Launch(ctx interface{}, name interface{}, _a2 interface{}) *Launcher_Launch_Call

Launch is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • _a2 *benchmark.Benchmark

type Launcher_GetJobName_Call

type Launcher_GetJobName_Call struct {
	*mock.Call
}

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

func (*Launcher_GetJobName_Call) Return

func (*Launcher_GetJobName_Call) Run

func (_c *Launcher_GetJobName_Call) Run(run func(name string)) *Launcher_GetJobName_Call

func (*Launcher_GetJobName_Call) RunAndReturn

func (_c *Launcher_GetJobName_Call) RunAndReturn(run func(string) string) *Launcher_GetJobName_Call

type Launcher_Launch_Call

type Launcher_Launch_Call struct {
	*mock.Call
}

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

func (*Launcher_Launch_Call) Return

func (*Launcher_Launch_Call) Run

func (*Launcher_Launch_Call) RunAndReturn

Jump to

Keyboard shortcuts

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