Documentation ¶
Index ¶
- type MockMaker
- type MockMaker_Expecter
- type MockMaker_Make_Call
- type MockTemplate
- func (_m *MockTemplate) EXPECT() *MockTemplate_Expecter
- func (_m *MockTemplate) RenderToFile(content string, _a1 parameters.Parameters, filePath string, perm fs.FileMode) error
- func (_m *MockTemplate) RenderToString(content string, _a1 parameters.Parameters) (string, error)
- func (_m *MockTemplate) RenderToWriter(content string, _a1 parameters.Parameters, writer io.Writer) error
- type MockTemplate_Expecter
- func (_e *MockTemplate_Expecter) RenderToFile(content interface{}, _a1 interface{}, filePath interface{}, perm interface{}) *MockTemplate_RenderToFile_Call
- func (_e *MockTemplate_Expecter) RenderToString(content interface{}, _a1 interface{}) *MockTemplate_RenderToString_Call
- func (_e *MockTemplate_Expecter) RenderToWriter(content interface{}, _a1 interface{}, writer interface{}) *MockTemplate_RenderToWriter_Call
- type MockTemplate_RenderToFile_Call
- func (_c *MockTemplate_RenderToFile_Call) Return(_a0 error) *MockTemplate_RenderToFile_Call
- func (_c *MockTemplate_RenderToFile_Call) Run(...) *MockTemplate_RenderToFile_Call
- func (_c *MockTemplate_RenderToFile_Call) RunAndReturn(run func(string, parameters.Parameters, string, fs.FileMode) error) *MockTemplate_RenderToFile_Call
- type MockTemplate_RenderToString_Call
- func (_c *MockTemplate_RenderToString_Call) Return(_a0 string, _a1 error) *MockTemplate_RenderToString_Call
- func (_c *MockTemplate_RenderToString_Call) Run(run func(content string, _a1 parameters.Parameters)) *MockTemplate_RenderToString_Call
- func (_c *MockTemplate_RenderToString_Call) RunAndReturn(run func(string, parameters.Parameters) (string, error)) *MockTemplate_RenderToString_Call
- type MockTemplate_RenderToWriter_Call
- func (_c *MockTemplate_RenderToWriter_Call) Return(_a0 error) *MockTemplate_RenderToWriter_Call
- func (_c *MockTemplate_RenderToWriter_Call) Run(run func(content string, _a1 parameters.Parameters, writer io.Writer)) *MockTemplate_RenderToWriter_Call
- func (_c *MockTemplate_RenderToWriter_Call) RunAndReturn(run func(string, parameters.Parameters, io.Writer) error) *MockTemplate_RenderToWriter_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(_a0 interface{}, services interface{}, serverTemplates interface{}) *MockMaker_Make_Call
Make is a helper method to define mock.On call
- _a0 service.TemplateService
- services template.Services
- serverTemplates templates.Templates
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 template.Template) *MockMaker_Make_Call
func (*MockMaker_Make_Call) Run ¶
func (_c *MockMaker_Make_Call) Run(run func(_a0 service.TemplateService, services template.Services, serverTemplates templates.Templates)) *MockMaker_Make_Call
func (*MockMaker_Make_Call) RunAndReturn ¶
func (_c *MockMaker_Make_Call) RunAndReturn(run func(service.TemplateService, template.Services, templates.Templates) template.Template) *MockMaker_Make_Call
type MockTemplate ¶
MockTemplate is an autogenerated mock type for the Template type
func NewMockTemplate ¶
func NewMockTemplate(t interface { mock.TestingT Cleanup(func()) }) *MockTemplate
NewMockTemplate creates a new instance of MockTemplate. 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 (*MockTemplate) EXPECT ¶
func (_m *MockTemplate) EXPECT() *MockTemplate_Expecter
func (*MockTemplate) RenderToFile ¶
func (_m *MockTemplate) RenderToFile(content string, _a1 parameters.Parameters, filePath string, perm fs.FileMode) error
RenderToFile provides a mock function with given fields: content, _a1, filePath, perm
func (*MockTemplate) RenderToString ¶
func (_m *MockTemplate) RenderToString(content string, _a1 parameters.Parameters) (string, error)
RenderToString provides a mock function with given fields: content, _a1
func (*MockTemplate) RenderToWriter ¶
func (_m *MockTemplate) RenderToWriter(content string, _a1 parameters.Parameters, writer io.Writer) error
RenderToWriter provides a mock function with given fields: content, _a1, writer
type MockTemplate_Expecter ¶
type MockTemplate_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTemplate_Expecter) RenderToFile ¶
func (_e *MockTemplate_Expecter) RenderToFile(content interface{}, _a1 interface{}, filePath interface{}, perm interface{}) *MockTemplate_RenderToFile_Call
RenderToFile is a helper method to define mock.On call
- content string
- _a1 parameters.Parameters
- filePath string
- perm fs.FileMode
func (*MockTemplate_Expecter) RenderToString ¶
func (_e *MockTemplate_Expecter) RenderToString(content interface{}, _a1 interface{}) *MockTemplate_RenderToString_Call
RenderToString is a helper method to define mock.On call
- content string
- _a1 parameters.Parameters
func (*MockTemplate_Expecter) RenderToWriter ¶
func (_e *MockTemplate_Expecter) RenderToWriter(content interface{}, _a1 interface{}, writer interface{}) *MockTemplate_RenderToWriter_Call
RenderToWriter is a helper method to define mock.On call
- content string
- _a1 parameters.Parameters
- writer io.Writer
type MockTemplate_RenderToFile_Call ¶
MockTemplate_RenderToFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RenderToFile'
func (*MockTemplate_RenderToFile_Call) Return ¶
func (_c *MockTemplate_RenderToFile_Call) Return(_a0 error) *MockTemplate_RenderToFile_Call
func (*MockTemplate_RenderToFile_Call) Run ¶
func (_c *MockTemplate_RenderToFile_Call) Run(run func(content string, _a1 parameters.Parameters, filePath string, perm fs.FileMode)) *MockTemplate_RenderToFile_Call
func (*MockTemplate_RenderToFile_Call) RunAndReturn ¶
func (_c *MockTemplate_RenderToFile_Call) RunAndReturn(run func(string, parameters.Parameters, string, fs.FileMode) error) *MockTemplate_RenderToFile_Call
type MockTemplate_RenderToString_Call ¶
MockTemplate_RenderToString_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RenderToString'
func (*MockTemplate_RenderToString_Call) Return ¶
func (_c *MockTemplate_RenderToString_Call) Return(_a0 string, _a1 error) *MockTemplate_RenderToString_Call
func (*MockTemplate_RenderToString_Call) Run ¶
func (_c *MockTemplate_RenderToString_Call) Run(run func(content string, _a1 parameters.Parameters)) *MockTemplate_RenderToString_Call
func (*MockTemplate_RenderToString_Call) RunAndReturn ¶
func (_c *MockTemplate_RenderToString_Call) RunAndReturn(run func(string, parameters.Parameters) (string, error)) *MockTemplate_RenderToString_Call
type MockTemplate_RenderToWriter_Call ¶
MockTemplate_RenderToWriter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RenderToWriter'
func (*MockTemplate_RenderToWriter_Call) Return ¶
func (_c *MockTemplate_RenderToWriter_Call) Return(_a0 error) *MockTemplate_RenderToWriter_Call
func (*MockTemplate_RenderToWriter_Call) Run ¶
func (_c *MockTemplate_RenderToWriter_Call) Run(run func(content string, _a1 parameters.Parameters, writer io.Writer)) *MockTemplate_RenderToWriter_Call
func (*MockTemplate_RenderToWriter_Call) RunAndReturn ¶
func (_c *MockTemplate_RenderToWriter_Call) RunAndReturn(run func(string, parameters.Parameters, io.Writer) error) *MockTemplate_RenderToWriter_Call