Documentation ¶
Index ¶
- type MockMaker
- type MockMaker_Expecter
- type MockMaker_Make_Call
- func (_c *MockMaker_Make_Call) Return(_a0 scripts.Scripts, _a1 error) *MockMaker_Make_Call
- func (_c *MockMaker_Make_Call) Run(run func(config map[string]types.Script)) *MockMaker_Make_Call
- func (_c *MockMaker_Make_Call) RunAndReturn(run func(map[string]types.Script) (scripts.Scripts, error)) *MockMaker_Make_Call
- type MockScript
- type MockScript_Content_Call
- type MockScript_Expecter
- type MockScript_Mode_Call
- type MockScript_Parameters_Call
- type MockScript_Path_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMaker ¶
MockMaker is an autogenerated mock type for the Maker type
func NewMockMaker ¶
NewMockMaker creates a new instance of MockMaker. 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 (*MockMaker) EXPECT ¶
func (_m *MockMaker) EXPECT() *MockMaker_Expecter
type MockMaker_Expecter ¶
type MockMaker_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMaker_Expecter) Make ¶
func (_e *MockMaker_Expecter) Make(config interface{}) *MockMaker_Make_Call
Make is a helper method to define mock.On call
- config map[string]types.Script
type MockMaker_Make_Call ¶
MockMaker_Make_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Make'
func (*MockMaker_Make_Call) Return ¶
func (_c *MockMaker_Make_Call) Return(_a0 scripts.Scripts, _a1 error) *MockMaker_Make_Call
func (*MockMaker_Make_Call) Run ¶
func (_c *MockMaker_Make_Call) Run(run func(config map[string]types.Script)) *MockMaker_Make_Call
func (*MockMaker_Make_Call) RunAndReturn ¶
func (_c *MockMaker_Make_Call) RunAndReturn(run func(map[string]types.Script) (scripts.Scripts, error)) *MockMaker_Make_Call
type MockScript ¶
MockScript is an autogenerated mock type for the Script type
func NewMockScript ¶
func NewMockScript(t interface { mock.TestingT Cleanup(func()) }) *MockScript
NewMockScript creates a new instance of MockScript. 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 (*MockScript) Content ¶
func (_m *MockScript) Content() string
Content provides a mock function with given fields:
func (*MockScript) EXPECT ¶
func (_m *MockScript) EXPECT() *MockScript_Expecter
func (*MockScript) Mode ¶
func (_m *MockScript) Mode() fs.FileMode
Mode provides a mock function with given fields:
func (*MockScript) Parameters ¶
func (_m *MockScript) Parameters() parameters.Parameters
Parameters provides a mock function with given fields:
func (*MockScript) Path ¶
func (_m *MockScript) Path() string
Path provides a mock function with given fields:
type MockScript_Content_Call ¶
MockScript_Content_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Content'
func (*MockScript_Content_Call) Return ¶
func (_c *MockScript_Content_Call) Return(_a0 string) *MockScript_Content_Call
func (*MockScript_Content_Call) Run ¶
func (_c *MockScript_Content_Call) Run(run func()) *MockScript_Content_Call
func (*MockScript_Content_Call) RunAndReturn ¶
func (_c *MockScript_Content_Call) RunAndReturn(run func() string) *MockScript_Content_Call
type MockScript_Expecter ¶
type MockScript_Expecter struct {
// contains filtered or unexported fields
}
func (*MockScript_Expecter) Content ¶
func (_e *MockScript_Expecter) Content() *MockScript_Content_Call
Content is a helper method to define mock.On call
func (*MockScript_Expecter) Mode ¶
func (_e *MockScript_Expecter) Mode() *MockScript_Mode_Call
Mode is a helper method to define mock.On call
func (*MockScript_Expecter) Parameters ¶
func (_e *MockScript_Expecter) Parameters() *MockScript_Parameters_Call
Parameters is a helper method to define mock.On call
func (*MockScript_Expecter) Path ¶
func (_e *MockScript_Expecter) Path() *MockScript_Path_Call
Path is a helper method to define mock.On call
type MockScript_Mode_Call ¶
MockScript_Mode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Mode'
func (*MockScript_Mode_Call) Return ¶
func (_c *MockScript_Mode_Call) Return(_a0 fs.FileMode) *MockScript_Mode_Call
func (*MockScript_Mode_Call) Run ¶
func (_c *MockScript_Mode_Call) Run(run func()) *MockScript_Mode_Call
func (*MockScript_Mode_Call) RunAndReturn ¶
func (_c *MockScript_Mode_Call) RunAndReturn(run func() fs.FileMode) *MockScript_Mode_Call
type MockScript_Parameters_Call ¶
MockScript_Parameters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Parameters'
func (*MockScript_Parameters_Call) Return ¶
func (_c *MockScript_Parameters_Call) Return(_a0 parameters.Parameters) *MockScript_Parameters_Call
func (*MockScript_Parameters_Call) Run ¶
func (_c *MockScript_Parameters_Call) Run(run func()) *MockScript_Parameters_Call
func (*MockScript_Parameters_Call) RunAndReturn ¶
func (_c *MockScript_Parameters_Call) RunAndReturn(run func() parameters.Parameters) *MockScript_Parameters_Call
type MockScript_Path_Call ¶
MockScript_Path_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Path'
func (*MockScript_Path_Call) Return ¶
func (_c *MockScript_Path_Call) Return(_a0 string) *MockScript_Path_Call
func (*MockScript_Path_Call) Run ¶
func (_c *MockScript_Path_Call) Run(run func()) *MockScript_Path_Call
func (*MockScript_Path_Call) RunAndReturn ¶
func (_c *MockScript_Path_Call) RunAndReturn(run func() string) *MockScript_Path_Call