Documentation ¶
Index ¶
- type MockInstance
- type MockInstanceMaker
- type MockInstanceMaker_Expecter
- type MockInstanceMaker_Make_Call
- func (_c *MockInstanceMaker_Make_Call) Return(_a0 instances.Instance, _a1 error) *MockInstanceMaker_Make_Call
- func (_c *MockInstanceMaker_Make_Call) Run(run func(instanceConfig types.Instance, instanceId int, ...)) *MockInstanceMaker_Make_Call
- func (_c *MockInstanceMaker_Make_Call) RunAndReturn(...) *MockInstanceMaker_Make_Call
- type MockInstance_Expecter
- type MockInstance_Name_Call
- type MockInstance_Run_Call
- type MockInstance_Workspace_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInstance ¶
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 ¶
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 (_m *MockInstanceMaker) EXPECT() *MockInstanceMaker_Expecter
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 ¶
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 (_c *MockInstanceMaker_Make_Call) Return(_a0 instances.Instance, _a1 error) *MockInstanceMaker_Make_Call
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
func (*MockInstanceMaker_Make_Call) RunAndReturn ¶
type MockInstance_Expecter ¶
type MockInstance_Expecter struct {
// contains filtered or unexported fields
}
func (*MockInstance_Expecter) Name ¶
func (_e *MockInstance_Expecter) Name() *MockInstance_Name_Call
Name is a helper method to define mock.On call
func (*MockInstance_Expecter) Run ¶
func (_e *MockInstance_Expecter) Run() *MockInstance_Run_Call
Run is a helper method to define mock.On call
func (*MockInstance_Expecter) Workspace ¶
func (_e *MockInstance_Expecter) Workspace() *MockInstance_Workspace_Call
Workspace is a helper method to define mock.On call
type MockInstance_Name_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 (_c *MockInstance_Name_Call) Return(_a0 string) *MockInstance_Name_Call
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 ¶
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 (_c *MockInstance_Run_Call) Return(_a0 error) *MockInstance_Run_Call
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 ¶
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 (_c *MockInstance_Workspace_Call) Return(_a0 string) *MockInstance_Workspace_Call
func (*MockInstance_Workspace_Call) Run ¶
func (_c *MockInstance_Workspace_Call) Run(run func()) *MockInstance_Workspace_Call
func (*MockInstance_Workspace_Call) RunAndReturn ¶
func (_c *MockInstance_Workspace_Call) RunAndReturn(run func() string) *MockInstance_Workspace_Call