instances

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockInstance

type MockInstance struct {
	mock.Mock
}

MockInstance is an autogenerated mock type for the Instance type

func NewMockInstance

func NewMockInstance(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockInstance

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

func (_m *MockInstance) EXPECT() *MockInstance_Expecter

func (*MockInstance) Name

func (_m *MockInstance) Name() string

Name provides a mock function with given fields:

func (*MockInstance) Run

func (_m *MockInstance) Run() error

Run provides a mock function with given fields:

func (*MockInstance) Workspace

func (_m *MockInstance) Workspace() string

Workspace provides a mock function with given fields:

type MockInstanceMaker

type MockInstanceMaker struct {
	mock.Mock
}

MockInstanceMaker is an autogenerated mock type for the InstanceMaker type

func NewMockInstanceMaker

func NewMockInstanceMaker(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockInstanceMaker

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

func (*MockInstanceMaker) Make

func (_m *MockInstanceMaker) Make(instanceConfig types.Instance, instanceId int, envsConfig map[string]types.Environment, dflts *defaults.Defaults, srvs servers.Servers, specWorkspace string) (instances.Instance, error)

Make provides a mock function with given fields: instanceConfig, instanceId, envsConfig, dflts, srvs, specWorkspace

type MockInstanceMaker_Expecter

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

func (*MockInstanceMaker_Expecter) Make

func (_e *MockInstanceMaker_Expecter) Make(instanceConfig interface{}, instanceId interface{}, envsConfig interface{}, dflts interface{}, srvs interface{}, specWorkspace interface{}) *MockInstanceMaker_Make_Call

Make is a helper method to define mock.On call

  • instanceConfig types.Instance
  • instanceId int
  • envsConfig map[string]types.Environment
  • dflts *defaults.Defaults
  • srvs servers.Servers
  • specWorkspace string

type MockInstanceMaker_Make_Call

type MockInstanceMaker_Make_Call struct {
	*mock.Call
}

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

func (*MockInstanceMaker_Make_Call) Return

func (*MockInstanceMaker_Make_Call) Run

func (_c *MockInstanceMaker_Make_Call) Run(run func(instanceConfig types.Instance, instanceId int, envsConfig map[string]types.Environment, dflts *defaults.Defaults, srvs servers.Servers, specWorkspace string)) *MockInstanceMaker_Make_Call

type MockInstance_Expecter

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

func (*MockInstance_Expecter) Name

Name is a helper method to define mock.On call

func (*MockInstance_Expecter) Run

Run is a helper method to define mock.On call

func (*MockInstance_Expecter) Workspace

Workspace is a helper method to define mock.On call

type MockInstance_Name_Call

type MockInstance_Name_Call struct {
	*mock.Call
}

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

func (*MockInstance_Name_Call) Return

func (*MockInstance_Name_Call) Run

func (_c *MockInstance_Name_Call) Run(run func()) *MockInstance_Name_Call

func (*MockInstance_Name_Call) RunAndReturn

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

type MockInstance_Run_Call

type MockInstance_Run_Call struct {
	*mock.Call
}

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

func (*MockInstance_Run_Call) Return

func (*MockInstance_Run_Call) Run

func (_c *MockInstance_Run_Call) Run(run func()) *MockInstance_Run_Call

func (*MockInstance_Run_Call) RunAndReturn

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

type MockInstance_Workspace_Call

type MockInstance_Workspace_Call struct {
	*mock.Call
}

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

func (*MockInstance_Workspace_Call) Return

func (*MockInstance_Workspace_Call) Run

func (*MockInstance_Workspace_Call) RunAndReturn

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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