Documentation ¶
Index ¶
- type MockTemplateService
- func (_m *MockTemplateService) ConfDir() (string, error)
- func (_m *MockTemplateService) EXPECT() *MockTemplateService_Expecter
- func (_m *MockTemplateService) EnvironmentConfigPaths() map[string]string
- func (_m *MockTemplateService) Executable() (string, error)
- func (_m *MockTemplateService) Group() string
- func (_m *MockTemplateService) LocalAddress() string
- func (_m *MockTemplateService) Pid() (int, error)
- func (_m *MockTemplateService) PrivateAddress() string
- func (_m *MockTemplateService) PrivateUrl() (string, error)
- func (_m *MockTemplateService) RunDir() (string, error)
- func (_m *MockTemplateService) ScriptDir() (string, error)
- func (_m *MockTemplateService) User() string
- type MockTemplateService_ConfDir_Call
- func (_c *MockTemplateService_ConfDir_Call) Return(_a0 string, _a1 error) *MockTemplateService_ConfDir_Call
- func (_c *MockTemplateService_ConfDir_Call) Run(run func()) *MockTemplateService_ConfDir_Call
- func (_c *MockTemplateService_ConfDir_Call) RunAndReturn(run func() (string, error)) *MockTemplateService_ConfDir_Call
- type MockTemplateService_EnvironmentConfigPaths_Call
- func (_c *MockTemplateService_EnvironmentConfigPaths_Call) Return(_a0 map[string]string) *MockTemplateService_EnvironmentConfigPaths_Call
- func (_c *MockTemplateService_EnvironmentConfigPaths_Call) Run(run func()) *MockTemplateService_EnvironmentConfigPaths_Call
- func (_c *MockTemplateService_EnvironmentConfigPaths_Call) RunAndReturn(run func() map[string]string) *MockTemplateService_EnvironmentConfigPaths_Call
- type MockTemplateService_Executable_Call
- func (_c *MockTemplateService_Executable_Call) Return(_a0 string, _a1 error) *MockTemplateService_Executable_Call
- func (_c *MockTemplateService_Executable_Call) Run(run func()) *MockTemplateService_Executable_Call
- func (_c *MockTemplateService_Executable_Call) RunAndReturn(run func() (string, error)) *MockTemplateService_Executable_Call
- type MockTemplateService_Expecter
- func (_e *MockTemplateService_Expecter) ConfDir() *MockTemplateService_ConfDir_Call
- func (_e *MockTemplateService_Expecter) EnvironmentConfigPaths() *MockTemplateService_EnvironmentConfigPaths_Call
- func (_e *MockTemplateService_Expecter) Executable() *MockTemplateService_Executable_Call
- func (_e *MockTemplateService_Expecter) Group() *MockTemplateService_Group_Call
- func (_e *MockTemplateService_Expecter) LocalAddress() *MockTemplateService_LocalAddress_Call
- func (_e *MockTemplateService_Expecter) Pid() *MockTemplateService_Pid_Call
- func (_e *MockTemplateService_Expecter) PrivateAddress() *MockTemplateService_PrivateAddress_Call
- func (_e *MockTemplateService_Expecter) PrivateUrl() *MockTemplateService_PrivateUrl_Call
- func (_e *MockTemplateService_Expecter) RunDir() *MockTemplateService_RunDir_Call
- func (_e *MockTemplateService_Expecter) ScriptDir() *MockTemplateService_ScriptDir_Call
- func (_e *MockTemplateService_Expecter) User() *MockTemplateService_User_Call
- type MockTemplateService_Group_Call
- type MockTemplateService_LocalAddress_Call
- func (_c *MockTemplateService_LocalAddress_Call) Return(_a0 string) *MockTemplateService_LocalAddress_Call
- func (_c *MockTemplateService_LocalAddress_Call) Run(run func()) *MockTemplateService_LocalAddress_Call
- func (_c *MockTemplateService_LocalAddress_Call) RunAndReturn(run func() string) *MockTemplateService_LocalAddress_Call
- type MockTemplateService_Pid_Call
- type MockTemplateService_PrivateAddress_Call
- func (_c *MockTemplateService_PrivateAddress_Call) Return(_a0 string) *MockTemplateService_PrivateAddress_Call
- func (_c *MockTemplateService_PrivateAddress_Call) Run(run func()) *MockTemplateService_PrivateAddress_Call
- func (_c *MockTemplateService_PrivateAddress_Call) RunAndReturn(run func() string) *MockTemplateService_PrivateAddress_Call
- type MockTemplateService_PrivateUrl_Call
- func (_c *MockTemplateService_PrivateUrl_Call) Return(_a0 string, _a1 error) *MockTemplateService_PrivateUrl_Call
- func (_c *MockTemplateService_PrivateUrl_Call) Run(run func()) *MockTemplateService_PrivateUrl_Call
- func (_c *MockTemplateService_PrivateUrl_Call) RunAndReturn(run func() (string, error)) *MockTemplateService_PrivateUrl_Call
- type MockTemplateService_RunDir_Call
- func (_c *MockTemplateService_RunDir_Call) Return(_a0 string, _a1 error) *MockTemplateService_RunDir_Call
- func (_c *MockTemplateService_RunDir_Call) Run(run func()) *MockTemplateService_RunDir_Call
- func (_c *MockTemplateService_RunDir_Call) RunAndReturn(run func() (string, error)) *MockTemplateService_RunDir_Call
- type MockTemplateService_ScriptDir_Call
- func (_c *MockTemplateService_ScriptDir_Call) Return(_a0 string, _a1 error) *MockTemplateService_ScriptDir_Call
- func (_c *MockTemplateService_ScriptDir_Call) Run(run func()) *MockTemplateService_ScriptDir_Call
- func (_c *MockTemplateService_ScriptDir_Call) RunAndReturn(run func() (string, error)) *MockTemplateService_ScriptDir_Call
- type MockTemplateService_User_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTemplateService ¶
MockTemplateService is an autogenerated mock type for the TemplateService type
func NewMockTemplateService ¶
func NewMockTemplateService(t interface { mock.TestingT Cleanup(func()) }) *MockTemplateService
NewMockTemplateService creates a new instance of MockTemplateService. 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 (*MockTemplateService) ConfDir ¶
func (_m *MockTemplateService) ConfDir() (string, error)
ConfDir provides a mock function with given fields:
func (*MockTemplateService) EXPECT ¶
func (_m *MockTemplateService) EXPECT() *MockTemplateService_Expecter
func (*MockTemplateService) EnvironmentConfigPaths ¶
func (_m *MockTemplateService) EnvironmentConfigPaths() map[string]string
EnvironmentConfigPaths provides a mock function with given fields:
func (*MockTemplateService) Executable ¶
func (_m *MockTemplateService) Executable() (string, error)
Executable provides a mock function with given fields:
func (*MockTemplateService) Group ¶
func (_m *MockTemplateService) Group() string
Group provides a mock function with given fields:
func (*MockTemplateService) LocalAddress ¶
func (_m *MockTemplateService) LocalAddress() string
LocalAddress provides a mock function with given fields:
func (*MockTemplateService) Pid ¶
func (_m *MockTemplateService) Pid() (int, error)
Pid provides a mock function with given fields:
func (*MockTemplateService) PrivateAddress ¶
func (_m *MockTemplateService) PrivateAddress() string
PrivateAddress provides a mock function with given fields:
func (*MockTemplateService) PrivateUrl ¶
func (_m *MockTemplateService) PrivateUrl() (string, error)
PrivateUrl provides a mock function with given fields:
func (*MockTemplateService) RunDir ¶
func (_m *MockTemplateService) RunDir() (string, error)
RunDir provides a mock function with given fields:
func (*MockTemplateService) ScriptDir ¶
func (_m *MockTemplateService) ScriptDir() (string, error)
ScriptDir provides a mock function with given fields:
func (*MockTemplateService) User ¶
func (_m *MockTemplateService) User() string
User provides a mock function with given fields:
type MockTemplateService_ConfDir_Call ¶
MockTemplateService_ConfDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ConfDir'
func (*MockTemplateService_ConfDir_Call) Return ¶
func (_c *MockTemplateService_ConfDir_Call) Return(_a0 string, _a1 error) *MockTemplateService_ConfDir_Call
func (*MockTemplateService_ConfDir_Call) Run ¶
func (_c *MockTemplateService_ConfDir_Call) Run(run func()) *MockTemplateService_ConfDir_Call
func (*MockTemplateService_ConfDir_Call) RunAndReturn ¶
func (_c *MockTemplateService_ConfDir_Call) RunAndReturn(run func() (string, error)) *MockTemplateService_ConfDir_Call
type MockTemplateService_EnvironmentConfigPaths_Call ¶
MockTemplateService_EnvironmentConfigPaths_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnvironmentConfigPaths'
func (*MockTemplateService_EnvironmentConfigPaths_Call) Return ¶
func (_c *MockTemplateService_EnvironmentConfigPaths_Call) Return(_a0 map[string]string) *MockTemplateService_EnvironmentConfigPaths_Call
func (*MockTemplateService_EnvironmentConfigPaths_Call) Run ¶
func (_c *MockTemplateService_EnvironmentConfigPaths_Call) Run(run func()) *MockTemplateService_EnvironmentConfigPaths_Call
func (*MockTemplateService_EnvironmentConfigPaths_Call) RunAndReturn ¶
func (_c *MockTemplateService_EnvironmentConfigPaths_Call) RunAndReturn(run func() map[string]string) *MockTemplateService_EnvironmentConfigPaths_Call
type MockTemplateService_Executable_Call ¶
MockTemplateService_Executable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Executable'
func (*MockTemplateService_Executable_Call) Return ¶
func (_c *MockTemplateService_Executable_Call) Return(_a0 string, _a1 error) *MockTemplateService_Executable_Call
func (*MockTemplateService_Executable_Call) Run ¶
func (_c *MockTemplateService_Executable_Call) Run(run func()) *MockTemplateService_Executable_Call
func (*MockTemplateService_Executable_Call) RunAndReturn ¶
func (_c *MockTemplateService_Executable_Call) RunAndReturn(run func() (string, error)) *MockTemplateService_Executable_Call
type MockTemplateService_Expecter ¶
type MockTemplateService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTemplateService_Expecter) ConfDir ¶
func (_e *MockTemplateService_Expecter) ConfDir() *MockTemplateService_ConfDir_Call
ConfDir is a helper method to define mock.On call
func (*MockTemplateService_Expecter) EnvironmentConfigPaths ¶
func (_e *MockTemplateService_Expecter) EnvironmentConfigPaths() *MockTemplateService_EnvironmentConfigPaths_Call
EnvironmentConfigPaths is a helper method to define mock.On call
func (*MockTemplateService_Expecter) Executable ¶
func (_e *MockTemplateService_Expecter) Executable() *MockTemplateService_Executable_Call
Executable is a helper method to define mock.On call
func (*MockTemplateService_Expecter) Group ¶
func (_e *MockTemplateService_Expecter) Group() *MockTemplateService_Group_Call
Group is a helper method to define mock.On call
func (*MockTemplateService_Expecter) LocalAddress ¶
func (_e *MockTemplateService_Expecter) LocalAddress() *MockTemplateService_LocalAddress_Call
LocalAddress is a helper method to define mock.On call
func (*MockTemplateService_Expecter) Pid ¶
func (_e *MockTemplateService_Expecter) Pid() *MockTemplateService_Pid_Call
Pid is a helper method to define mock.On call
func (*MockTemplateService_Expecter) PrivateAddress ¶
func (_e *MockTemplateService_Expecter) PrivateAddress() *MockTemplateService_PrivateAddress_Call
PrivateAddress is a helper method to define mock.On call
func (*MockTemplateService_Expecter) PrivateUrl ¶
func (_e *MockTemplateService_Expecter) PrivateUrl() *MockTemplateService_PrivateUrl_Call
PrivateUrl is a helper method to define mock.On call
func (*MockTemplateService_Expecter) RunDir ¶
func (_e *MockTemplateService_Expecter) RunDir() *MockTemplateService_RunDir_Call
RunDir is a helper method to define mock.On call
func (*MockTemplateService_Expecter) ScriptDir ¶
func (_e *MockTemplateService_Expecter) ScriptDir() *MockTemplateService_ScriptDir_Call
ScriptDir is a helper method to define mock.On call
func (*MockTemplateService_Expecter) User ¶
func (_e *MockTemplateService_Expecter) User() *MockTemplateService_User_Call
User is a helper method to define mock.On call
type MockTemplateService_Group_Call ¶
MockTemplateService_Group_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Group'
func (*MockTemplateService_Group_Call) Return ¶
func (_c *MockTemplateService_Group_Call) Return(_a0 string) *MockTemplateService_Group_Call
func (*MockTemplateService_Group_Call) Run ¶
func (_c *MockTemplateService_Group_Call) Run(run func()) *MockTemplateService_Group_Call
func (*MockTemplateService_Group_Call) RunAndReturn ¶
func (_c *MockTemplateService_Group_Call) RunAndReturn(run func() string) *MockTemplateService_Group_Call
type MockTemplateService_LocalAddress_Call ¶
MockTemplateService_LocalAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LocalAddress'
func (*MockTemplateService_LocalAddress_Call) Return ¶
func (_c *MockTemplateService_LocalAddress_Call) Return(_a0 string) *MockTemplateService_LocalAddress_Call
func (*MockTemplateService_LocalAddress_Call) Run ¶
func (_c *MockTemplateService_LocalAddress_Call) Run(run func()) *MockTemplateService_LocalAddress_Call
func (*MockTemplateService_LocalAddress_Call) RunAndReturn ¶
func (_c *MockTemplateService_LocalAddress_Call) RunAndReturn(run func() string) *MockTemplateService_LocalAddress_Call
type MockTemplateService_Pid_Call ¶
MockTemplateService_Pid_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Pid'
func (*MockTemplateService_Pid_Call) Return ¶
func (_c *MockTemplateService_Pid_Call) Return(_a0 int, _a1 error) *MockTemplateService_Pid_Call
func (*MockTemplateService_Pid_Call) Run ¶
func (_c *MockTemplateService_Pid_Call) Run(run func()) *MockTemplateService_Pid_Call
func (*MockTemplateService_Pid_Call) RunAndReturn ¶
func (_c *MockTemplateService_Pid_Call) RunAndReturn(run func() (int, error)) *MockTemplateService_Pid_Call
type MockTemplateService_PrivateAddress_Call ¶
MockTemplateService_PrivateAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PrivateAddress'
func (*MockTemplateService_PrivateAddress_Call) Return ¶
func (_c *MockTemplateService_PrivateAddress_Call) Return(_a0 string) *MockTemplateService_PrivateAddress_Call
func (*MockTemplateService_PrivateAddress_Call) Run ¶
func (_c *MockTemplateService_PrivateAddress_Call) Run(run func()) *MockTemplateService_PrivateAddress_Call
func (*MockTemplateService_PrivateAddress_Call) RunAndReturn ¶
func (_c *MockTemplateService_PrivateAddress_Call) RunAndReturn(run func() string) *MockTemplateService_PrivateAddress_Call
type MockTemplateService_PrivateUrl_Call ¶
MockTemplateService_PrivateUrl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PrivateUrl'
func (*MockTemplateService_PrivateUrl_Call) Return ¶
func (_c *MockTemplateService_PrivateUrl_Call) Return(_a0 string, _a1 error) *MockTemplateService_PrivateUrl_Call
func (*MockTemplateService_PrivateUrl_Call) Run ¶
func (_c *MockTemplateService_PrivateUrl_Call) Run(run func()) *MockTemplateService_PrivateUrl_Call
func (*MockTemplateService_PrivateUrl_Call) RunAndReturn ¶
func (_c *MockTemplateService_PrivateUrl_Call) RunAndReturn(run func() (string, error)) *MockTemplateService_PrivateUrl_Call
type MockTemplateService_RunDir_Call ¶
MockTemplateService_RunDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunDir'
func (*MockTemplateService_RunDir_Call) Return ¶
func (_c *MockTemplateService_RunDir_Call) Return(_a0 string, _a1 error) *MockTemplateService_RunDir_Call
func (*MockTemplateService_RunDir_Call) Run ¶
func (_c *MockTemplateService_RunDir_Call) Run(run func()) *MockTemplateService_RunDir_Call
func (*MockTemplateService_RunDir_Call) RunAndReturn ¶
func (_c *MockTemplateService_RunDir_Call) RunAndReturn(run func() (string, error)) *MockTemplateService_RunDir_Call
type MockTemplateService_ScriptDir_Call ¶
MockTemplateService_ScriptDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ScriptDir'
func (*MockTemplateService_ScriptDir_Call) Return ¶
func (_c *MockTemplateService_ScriptDir_Call) Return(_a0 string, _a1 error) *MockTemplateService_ScriptDir_Call
func (*MockTemplateService_ScriptDir_Call) Run ¶
func (_c *MockTemplateService_ScriptDir_Call) Run(run func()) *MockTemplateService_ScriptDir_Call
func (*MockTemplateService_ScriptDir_Call) RunAndReturn ¶
func (_c *MockTemplateService_ScriptDir_Call) RunAndReturn(run func() (string, error)) *MockTemplateService_ScriptDir_Call
type MockTemplateService_User_Call ¶
MockTemplateService_User_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'User'
func (*MockTemplateService_User_Call) Return ¶
func (_c *MockTemplateService_User_Call) Return(_a0 string) *MockTemplateService_User_Call
func (*MockTemplateService_User_Call) Run ¶
func (_c *MockTemplateService_User_Call) Run(run func()) *MockTemplateService_User_Call
func (*MockTemplateService_User_Call) RunAndReturn ¶
func (_c *MockTemplateService_User_Call) RunAndReturn(run func() string) *MockTemplateService_User_Call