mocks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hypervisor

type Hypervisor struct {
	mock.Mock
}

Hypervisor is an autogenerated mock type for the Hypervisor type

func NewHypervisor

func NewHypervisor(t interface {
	mock.TestingT
	Cleanup(func())
}) *Hypervisor

NewHypervisor creates a new instance of Hypervisor. 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 (*Hypervisor) Create

func (_m *Hypervisor) Create(ctx context.Context, name string) (hypervisor.VirtualMachine, error)

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

func (*Hypervisor) Delete

func (_m *Hypervisor) Delete(ctx context.Context, id string) error

Delete provides a mock function with given fields: ctx, id

func (*Hypervisor) EXPECT

func (_m *Hypervisor) EXPECT() *Hypervisor_Expecter

func (*Hypervisor) Init

func (_m *Hypervisor) Init(ctx context.Context, config []byte) error

Init provides a mock function with given fields: ctx, config

func (*Hypervisor) List

List provides a mock function with given fields: ctx

func (*Hypervisor) Shutdown

func (_m *Hypervisor) Shutdown(ctx context.Context) error

Shutdown provides a mock function with given fields: ctx

type Hypervisor_Create_Call

type Hypervisor_Create_Call struct {
	*mock.Call
}

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

func (*Hypervisor_Create_Call) Return

func (*Hypervisor_Create_Call) Run

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

func (*Hypervisor_Create_Call) RunAndReturn added in v0.3.0

type Hypervisor_Delete_Call

type Hypervisor_Delete_Call struct {
	*mock.Call
}

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

func (*Hypervisor_Delete_Call) Return

func (*Hypervisor_Delete_Call) Run

func (*Hypervisor_Delete_Call) RunAndReturn added in v0.3.0

type Hypervisor_Expecter

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

func (*Hypervisor_Expecter) Create

func (_e *Hypervisor_Expecter) Create(ctx interface{}, name interface{}) *Hypervisor_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*Hypervisor_Expecter) Delete

func (_e *Hypervisor_Expecter) Delete(ctx interface{}, id interface{}) *Hypervisor_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*Hypervisor_Expecter) Init

func (_e *Hypervisor_Expecter) Init(ctx interface{}, config interface{}) *Hypervisor_Init_Call

Init is a helper method to define mock.On call

  • ctx context.Context
  • config []byte

func (*Hypervisor_Expecter) List

func (_e *Hypervisor_Expecter) List(ctx interface{}) *Hypervisor_List_Call

List is a helper method to define mock.On call

  • ctx context.Context

func (*Hypervisor_Expecter) Shutdown

func (_e *Hypervisor_Expecter) Shutdown(ctx interface{}) *Hypervisor_Shutdown_Call

Shutdown is a helper method to define mock.On call

  • ctx context.Context

type Hypervisor_Init_Call

type Hypervisor_Init_Call struct {
	*mock.Call
}

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

func (*Hypervisor_Init_Call) Return

func (*Hypervisor_Init_Call) Run

func (_c *Hypervisor_Init_Call) Run(run func(ctx context.Context, config []byte)) *Hypervisor_Init_Call

func (*Hypervisor_Init_Call) RunAndReturn added in v0.3.0

func (_c *Hypervisor_Init_Call) RunAndReturn(run func(context.Context, []byte) error) *Hypervisor_Init_Call

type Hypervisor_List_Call

type Hypervisor_List_Call struct {
	*mock.Call
}

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

func (*Hypervisor_List_Call) Return

func (*Hypervisor_List_Call) Run

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

func (*Hypervisor_List_Call) RunAndReturn added in v0.3.0

type Hypervisor_Shutdown_Call

type Hypervisor_Shutdown_Call struct {
	*mock.Call
}

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

func (*Hypervisor_Shutdown_Call) Return

func (*Hypervisor_Shutdown_Call) Run

func (*Hypervisor_Shutdown_Call) RunAndReturn added in v0.3.0

Jump to

Keyboard shortcuts

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