mocks

package
v1.1.38 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pod

type Pod struct {
	mock.Mock
}

Pod is an autogenerated mock type for the Pod type

func NewPod

func NewPod(t interface {
	mock.TestingT
	Cleanup(func())
}) *Pod

NewPod creates a new instance of Pod. 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 (*Pod) Close

func (_m *Pod) Close() error

Close provides a mock function with given fields:

func (*Pod) Delete

func (_m *Pod) Delete() error

Delete provides a mock function with given fields:

func (*Pod) EXPECT

func (_m *Pod) EXPECT() *Pod_Expecter

func (*Pod) Exec

func (_m *Pod) Exec(cmd []string) error

Exec provides a mock function with given fields: cmd

func (*Pod) ExecInteractive

func (_m *Pod) ExecInteractive(cmd []string) error

ExecInteractive provides a mock function with given fields: cmd

type Pod_Close_Call

type Pod_Close_Call struct {
	*mock.Call
}

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

func (*Pod_Close_Call) Return

func (_c *Pod_Close_Call) Return(_a0 error) *Pod_Close_Call

func (*Pod_Close_Call) Run

func (_c *Pod_Close_Call) Run(run func()) *Pod_Close_Call

func (*Pod_Close_Call) RunAndReturn added in v1.0.73

func (_c *Pod_Close_Call) RunAndReturn(run func() error) *Pod_Close_Call

type Pod_Delete_Call

type Pod_Delete_Call struct {
	*mock.Call
}

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

func (*Pod_Delete_Call) Return

func (_c *Pod_Delete_Call) Return(_a0 error) *Pod_Delete_Call

func (*Pod_Delete_Call) Run

func (_c *Pod_Delete_Call) Run(run func()) *Pod_Delete_Call

func (*Pod_Delete_Call) RunAndReturn added in v1.0.73

func (_c *Pod_Delete_Call) RunAndReturn(run func() error) *Pod_Delete_Call

type Pod_ExecInteractive_Call

type Pod_ExecInteractive_Call struct {
	*mock.Call
}

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

func (*Pod_ExecInteractive_Call) Return

func (*Pod_ExecInteractive_Call) Run

func (_c *Pod_ExecInteractive_Call) Run(run func(cmd []string)) *Pod_ExecInteractive_Call

func (*Pod_ExecInteractive_Call) RunAndReturn added in v1.0.73

func (_c *Pod_ExecInteractive_Call) RunAndReturn(run func([]string) error) *Pod_ExecInteractive_Call

type Pod_Exec_Call

type Pod_Exec_Call struct {
	*mock.Call
}

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

func (*Pod_Exec_Call) Return

func (_c *Pod_Exec_Call) Return(_a0 error) *Pod_Exec_Call

func (*Pod_Exec_Call) Run

func (_c *Pod_Exec_Call) Run(run func(cmd []string)) *Pod_Exec_Call

func (*Pod_Exec_Call) RunAndReturn added in v1.0.73

func (_c *Pod_Exec_Call) RunAndReturn(run func([]string) error) *Pod_Exec_Call

type Pod_Expecter

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

func (*Pod_Expecter) Close

func (_e *Pod_Expecter) Close() *Pod_Close_Call

Close is a helper method to define mock.On call

func (*Pod_Expecter) Delete

func (_e *Pod_Expecter) Delete() *Pod_Delete_Call

Delete is a helper method to define mock.On call

func (*Pod_Expecter) Exec

func (_e *Pod_Expecter) Exec(cmd interface{}) *Pod_Exec_Call

Exec is a helper method to define mock.On call

  • cmd []string

func (*Pod_Expecter) ExecInteractive

func (_e *Pod_Expecter) ExecInteractive(cmd interface{}) *Pod_ExecInteractive_Call

ExecInteractive is a helper method to define mock.On call

  • cmd []string

type Runner

type Runner struct {
	mock.Mock
}

Runner is an autogenerated mock type for the Runner type

func NewRunner

func NewRunner(t interface {
	mock.TestingT
	Cleanup(func())
}) *Runner

NewRunner creates a new instance of Runner. 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 (*Runner) Cleanup

func (_m *Runner) Cleanup() error

Cleanup provides a mock function with given fields:

func (*Runner) Create

func (_m *Runner) Create(_a0 podrun.Spec) (podrun.Pod, error)

Create provides a mock function with given fields: _a0

func (*Runner) EXPECT

func (_m *Runner) EXPECT() *Runner_Expecter

type Runner_Cleanup_Call

type Runner_Cleanup_Call struct {
	*mock.Call
}

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

func (*Runner_Cleanup_Call) Return

func (*Runner_Cleanup_Call) Run

func (_c *Runner_Cleanup_Call) Run(run func()) *Runner_Cleanup_Call

func (*Runner_Cleanup_Call) RunAndReturn added in v1.0.73

func (_c *Runner_Cleanup_Call) RunAndReturn(run func() error) *Runner_Cleanup_Call

type Runner_Create_Call

type Runner_Create_Call struct {
	*mock.Call
}

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

func (*Runner_Create_Call) Return

func (_c *Runner_Create_Call) Return(_a0 podrun.Pod, _a1 error) *Runner_Create_Call

func (*Runner_Create_Call) Run

func (_c *Runner_Create_Call) Run(run func(_a0 podrun.Spec)) *Runner_Create_Call

func (*Runner_Create_Call) RunAndReturn added in v1.0.73

func (_c *Runner_Create_Call) RunAndReturn(run func(podrun.Spec) (podrun.Pod, error)) *Runner_Create_Call

type Runner_Expecter

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

func (*Runner_Expecter) Cleanup

func (_e *Runner_Expecter) Cleanup() *Runner_Cleanup_Call

Cleanup is a helper method to define mock.On call

func (*Runner_Expecter) Create

func (_e *Runner_Expecter) Create(_a0 interface{}) *Runner_Create_Call

Create is a helper method to define mock.On call

  • _a0 podrun.Spec

Jump to

Keyboard shortcuts

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