Documentation ¶
Index ¶
- type Manager
- func (_m *Manager) EXPECT() *Manager_Expecter
- func (_m *Manager) Engine() interface{}
- func (_m *Manager) MustInit() validation.Manager
- func (_m *Manager) RegisterRegexValidator(tag string, r *regexp.Regexp) validation.Manager
- func (_m *Manager) Validate(i interface{}) error
- func (_m *Manager) ValidateStruct(i interface{}) error
- type Manager_Engine_Call
- type Manager_Expecter
- func (_e *Manager_Expecter) Engine() *Manager_Engine_Call
- func (_e *Manager_Expecter) MustInit() *Manager_MustInit_Call
- func (_e *Manager_Expecter) RegisterRegexValidator(tag interface{}, r interface{}) *Manager_RegisterRegexValidator_Call
- func (_e *Manager_Expecter) Validate(i interface{}) *Manager_Validate_Call
- func (_e *Manager_Expecter) ValidateStruct(i interface{}) *Manager_ValidateStruct_Call
- type Manager_MustInit_Call
- type Manager_RegisterRegexValidator_Call
- func (_c *Manager_RegisterRegexValidator_Call) Return(_a0 validation.Manager) *Manager_RegisterRegexValidator_Call
- func (_c *Manager_RegisterRegexValidator_Call) Run(run func(tag string, r *regexp.Regexp)) *Manager_RegisterRegexValidator_Call
- func (_c *Manager_RegisterRegexValidator_Call) RunAndReturn(run func(string, *regexp.Regexp) validation.Manager) *Manager_RegisterRegexValidator_Call
- type Manager_ValidateStruct_Call
- type Manager_Validate_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
Manager is an autogenerated mock type for the Manager type
func NewManager ¶
NewManager creates a new instance of Manager. 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 (*Manager) EXPECT ¶
func (_m *Manager) EXPECT() *Manager_Expecter
func (*Manager) Engine ¶
func (_m *Manager) Engine() interface{}
Engine provides a mock function with given fields:
func (*Manager) MustInit ¶
func (_m *Manager) MustInit() validation.Manager
MustInit provides a mock function with given fields:
func (*Manager) RegisterRegexValidator ¶
RegisterRegexValidator provides a mock function with given fields: tag, r
func (*Manager) ValidateStruct ¶
ValidateStruct provides a mock function with given fields: i
type Manager_Engine_Call ¶
Manager_Engine_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Engine'
func (*Manager_Engine_Call) Return ¶
func (_c *Manager_Engine_Call) Return(_a0 interface{}) *Manager_Engine_Call
func (*Manager_Engine_Call) Run ¶
func (_c *Manager_Engine_Call) Run(run func()) *Manager_Engine_Call
func (*Manager_Engine_Call) RunAndReturn ¶
func (_c *Manager_Engine_Call) RunAndReturn(run func() interface{}) *Manager_Engine_Call
type Manager_Expecter ¶
type Manager_Expecter struct {
// contains filtered or unexported fields
}
func (*Manager_Expecter) Engine ¶
func (_e *Manager_Expecter) Engine() *Manager_Engine_Call
Engine is a helper method to define mock.On call
func (*Manager_Expecter) MustInit ¶
func (_e *Manager_Expecter) MustInit() *Manager_MustInit_Call
MustInit is a helper method to define mock.On call
func (*Manager_Expecter) RegisterRegexValidator ¶
func (_e *Manager_Expecter) RegisterRegexValidator(tag interface{}, r interface{}) *Manager_RegisterRegexValidator_Call
RegisterRegexValidator is a helper method to define mock.On call
- tag string
- r *regexp.Regexp
func (*Manager_Expecter) Validate ¶
func (_e *Manager_Expecter) Validate(i interface{}) *Manager_Validate_Call
Validate is a helper method to define mock.On call
- i interface{}
func (*Manager_Expecter) ValidateStruct ¶
func (_e *Manager_Expecter) ValidateStruct(i interface{}) *Manager_ValidateStruct_Call
ValidateStruct is a helper method to define mock.On call
- i interface{}
type Manager_MustInit_Call ¶
Manager_MustInit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MustInit'
func (*Manager_MustInit_Call) Return ¶
func (_c *Manager_MustInit_Call) Return(_a0 validation.Manager) *Manager_MustInit_Call
func (*Manager_MustInit_Call) Run ¶
func (_c *Manager_MustInit_Call) Run(run func()) *Manager_MustInit_Call
func (*Manager_MustInit_Call) RunAndReturn ¶
func (_c *Manager_MustInit_Call) RunAndReturn(run func() validation.Manager) *Manager_MustInit_Call
type Manager_RegisterRegexValidator_Call ¶
Manager_RegisterRegexValidator_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterRegexValidator'
func (*Manager_RegisterRegexValidator_Call) Return ¶
func (_c *Manager_RegisterRegexValidator_Call) Return(_a0 validation.Manager) *Manager_RegisterRegexValidator_Call
func (*Manager_RegisterRegexValidator_Call) Run ¶
func (_c *Manager_RegisterRegexValidator_Call) Run(run func(tag string, r *regexp.Regexp)) *Manager_RegisterRegexValidator_Call
func (*Manager_RegisterRegexValidator_Call) RunAndReturn ¶
func (_c *Manager_RegisterRegexValidator_Call) RunAndReturn(run func(string, *regexp.Regexp) validation.Manager) *Manager_RegisterRegexValidator_Call
type Manager_ValidateStruct_Call ¶
Manager_ValidateStruct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateStruct'
func (*Manager_ValidateStruct_Call) Return ¶
func (_c *Manager_ValidateStruct_Call) Return(_a0 error) *Manager_ValidateStruct_Call
func (*Manager_ValidateStruct_Call) Run ¶
func (_c *Manager_ValidateStruct_Call) Run(run func(i interface{})) *Manager_ValidateStruct_Call
func (*Manager_ValidateStruct_Call) RunAndReturn ¶
func (_c *Manager_ValidateStruct_Call) RunAndReturn(run func(interface{}) error) *Manager_ValidateStruct_Call
type Manager_Validate_Call ¶
Manager_Validate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Validate'
func (*Manager_Validate_Call) Return ¶
func (_c *Manager_Validate_Call) Return(_a0 error) *Manager_Validate_Call
func (*Manager_Validate_Call) Run ¶
func (_c *Manager_Validate_Call) Run(run func(i interface{})) *Manager_Validate_Call
func (*Manager_Validate_Call) RunAndReturn ¶
func (_c *Manager_Validate_Call) RunAndReturn(run func(interface{}) error) *Manager_Validate_Call