Documentation ¶
Index ¶
- type CompleteFormService
- func (_m *CompleteFormService) Decode(ctx context.Context, req *web.Request, values url.Values, formData interface{}) (interface{}, error)
- func (_m *CompleteFormService) EXPECT() *CompleteFormService_Expecter
- func (_m *CompleteFormService) GetFormData(ctx context.Context, req *web.Request) (interface{}, error)
- func (_m *CompleteFormService) Validate(ctx context.Context, req *web.Request, ...) (*domain.ValidationInfo, error)
- type CompleteFormService_Decode_Call
- type CompleteFormService_Expecter
- func (_e *CompleteFormService_Expecter) Decode(ctx interface{}, req interface{}, values interface{}, formData interface{}) *CompleteFormService_Decode_Call
- func (_e *CompleteFormService_Expecter) GetFormData(ctx interface{}, req interface{}) *CompleteFormService_GetFormData_Call
- func (_e *CompleteFormService_Expecter) Validate(ctx interface{}, req interface{}, validatorProvider interface{}, ...) *CompleteFormService_Validate_Call
- type CompleteFormService_GetFormData_Call
- func (_c *CompleteFormService_GetFormData_Call) Return(_a0 interface{}, _a1 error) *CompleteFormService_GetFormData_Call
- func (_c *CompleteFormService_GetFormData_Call) Run(run func(ctx context.Context, req *web.Request)) *CompleteFormService_GetFormData_Call
- func (_c *CompleteFormService_GetFormData_Call) RunAndReturn(run func(context.Context, *web.Request) (interface{}, error)) *CompleteFormService_GetFormData_Call
- type CompleteFormService_Validate_Call
- func (_c *CompleteFormService_Validate_Call) Return(_a0 *domain.ValidationInfo, _a1 error) *CompleteFormService_Validate_Call
- func (_c *CompleteFormService_Validate_Call) Run(run func(ctx context.Context, req *web.Request, ...)) *CompleteFormService_Validate_Call
- func (_c *CompleteFormService_Validate_Call) RunAndReturn(...) *CompleteFormService_Validate_Call
- type DefaultFormDataDecoder
- type DefaultFormDataDecoder_Decode_Call
- func (_c *DefaultFormDataDecoder_Decode_Call) Return(_a0 interface{}, _a1 error) *DefaultFormDataDecoder_Decode_Call
- func (_c *DefaultFormDataDecoder_Decode_Call) Run(...) *DefaultFormDataDecoder_Decode_Call
- func (_c *DefaultFormDataDecoder_Decode_Call) RunAndReturn(...) *DefaultFormDataDecoder_Decode_Call
- type DefaultFormDataDecoder_Expecter
- type DefaultFormDataEncoder
- type DefaultFormDataEncoder_Encode_Call
- func (_c *DefaultFormDataEncoder_Encode_Call) Return(_a0 url.Values, _a1 error) *DefaultFormDataEncoder_Encode_Call
- func (_c *DefaultFormDataEncoder_Encode_Call) Run(run func(ctx context.Context, formData interface{})) *DefaultFormDataEncoder_Encode_Call
- func (_c *DefaultFormDataEncoder_Encode_Call) RunAndReturn(run func(context.Context, interface{}) (url.Values, error)) *DefaultFormDataEncoder_Encode_Call
- type DefaultFormDataEncoder_Expecter
- type DefaultFormDataProvider
- type DefaultFormDataProvider_Expecter
- type DefaultFormDataProvider_GetFormData_Call
- func (_c *DefaultFormDataProvider_GetFormData_Call) Return(_a0 interface{}, _a1 error) *DefaultFormDataProvider_GetFormData_Call
- func (_c *DefaultFormDataProvider_GetFormData_Call) Run(run func(ctx context.Context, req *web.Request)) *DefaultFormDataProvider_GetFormData_Call
- func (_c *DefaultFormDataProvider_GetFormData_Call) RunAndReturn(run func(context.Context, *web.Request) (interface{}, error)) *DefaultFormDataProvider_GetFormData_Call
- type DefaultFormDataValidator
- type DefaultFormDataValidator_Expecter
- type DefaultFormDataValidator_Validate_Call
- func (_c *DefaultFormDataValidator_Validate_Call) Return(_a0 *domain.ValidationInfo, _a1 error) *DefaultFormDataValidator_Validate_Call
- func (_c *DefaultFormDataValidator_Validate_Call) Run(run func(ctx context.Context, req *web.Request, ...)) *DefaultFormDataValidator_Validate_Call
- func (_c *DefaultFormDataValidator_Validate_Call) RunAndReturn(...) *DefaultFormDataValidator_Validate_Call
- type FieldError
- func (_m *FieldError) ActualTag() string
- func (_m *FieldError) EXPECT() *FieldError_Expecter
- func (_m *FieldError) Error() string
- func (_m *FieldError) Field() string
- func (_m *FieldError) Kind() reflect.Kind
- func (_m *FieldError) Namespace() string
- func (_m *FieldError) Param() string
- func (_m *FieldError) StructField() string
- func (_m *FieldError) StructNamespace() string
- func (_m *FieldError) Tag() string
- func (_m *FieldError) Translate(_a0 ut.Translator) string
- func (_m *FieldError) Type() reflect.Type
- func (_m *FieldError) Value() interface{}
- type FieldError_ActualTag_Call
- type FieldError_Error_Call
- type FieldError_Expecter
- func (_e *FieldError_Expecter) ActualTag() *FieldError_ActualTag_Call
- func (_e *FieldError_Expecter) Error() *FieldError_Error_Call
- func (_e *FieldError_Expecter) Field() *FieldError_Field_Call
- func (_e *FieldError_Expecter) Kind() *FieldError_Kind_Call
- func (_e *FieldError_Expecter) Namespace() *FieldError_Namespace_Call
- func (_e *FieldError_Expecter) Param() *FieldError_Param_Call
- func (_e *FieldError_Expecter) StructField() *FieldError_StructField_Call
- func (_e *FieldError_Expecter) StructNamespace() *FieldError_StructNamespace_Call
- func (_e *FieldError_Expecter) Tag() *FieldError_Tag_Call
- func (_e *FieldError_Expecter) Translate(_a0 interface{}) *FieldError_Translate_Call
- func (_e *FieldError_Expecter) Type() *FieldError_Type_Call
- func (_e *FieldError_Expecter) Value() *FieldError_Value_Call
- type FieldError_Field_Call
- type FieldError_Kind_Call
- type FieldError_Namespace_Call
- type FieldError_Param_Call
- type FieldError_StructField_Call
- type FieldError_StructNamespace_Call
- type FieldError_Tag_Call
- type FieldError_Translate_Call
- type FieldError_Type_Call
- type FieldError_Value_Call
- type FieldLevel
- func (_m *FieldLevel) EXPECT() *FieldLevel_Expecter
- func (_m *FieldLevel) ExtractType(field reflect.Value) (reflect.Value, reflect.Kind, bool)
- func (_m *FieldLevel) Field() reflect.Value
- func (_m *FieldLevel) FieldName() string
- func (_m *FieldLevel) GetStructFieldOK() (reflect.Value, reflect.Kind, bool)
- func (_m *FieldLevel) GetStructFieldOK2() (reflect.Value, reflect.Kind, bool, bool)
- func (_m *FieldLevel) GetStructFieldOKAdvanced(val reflect.Value, namespace string) (reflect.Value, reflect.Kind, bool)
- func (_m *FieldLevel) GetStructFieldOKAdvanced2(val reflect.Value, namespace string) (reflect.Value, reflect.Kind, bool, bool)
- func (_m *FieldLevel) GetTag() string
- func (_m *FieldLevel) Param() string
- func (_m *FieldLevel) Parent() reflect.Value
- func (_m *FieldLevel) StructFieldName() string
- func (_m *FieldLevel) Top() reflect.Value
- type FieldLevel_Expecter
- func (_e *FieldLevel_Expecter) ExtractType(field interface{}) *FieldLevel_ExtractType_Call
- func (_e *FieldLevel_Expecter) Field() *FieldLevel_Field_Call
- func (_e *FieldLevel_Expecter) FieldName() *FieldLevel_FieldName_Call
- func (_e *FieldLevel_Expecter) GetStructFieldOK() *FieldLevel_GetStructFieldOK_Call
- func (_e *FieldLevel_Expecter) GetStructFieldOK2() *FieldLevel_GetStructFieldOK2_Call
- func (_e *FieldLevel_Expecter) GetStructFieldOKAdvanced(val interface{}, namespace interface{}) *FieldLevel_GetStructFieldOKAdvanced_Call
- func (_e *FieldLevel_Expecter) GetStructFieldOKAdvanced2(val interface{}, namespace interface{}) *FieldLevel_GetStructFieldOKAdvanced2_Call
- func (_e *FieldLevel_Expecter) GetTag() *FieldLevel_GetTag_Call
- func (_e *FieldLevel_Expecter) Param() *FieldLevel_Param_Call
- func (_e *FieldLevel_Expecter) Parent() *FieldLevel_Parent_Call
- func (_e *FieldLevel_Expecter) StructFieldName() *FieldLevel_StructFieldName_Call
- func (_e *FieldLevel_Expecter) Top() *FieldLevel_Top_Call
- type FieldLevel_ExtractType_Call
- func (_c *FieldLevel_ExtractType_Call) Return(value reflect.Value, kind reflect.Kind, nullable bool) *FieldLevel_ExtractType_Call
- func (_c *FieldLevel_ExtractType_Call) Run(run func(field reflect.Value)) *FieldLevel_ExtractType_Call
- func (_c *FieldLevel_ExtractType_Call) RunAndReturn(run func(reflect.Value) (reflect.Value, reflect.Kind, bool)) *FieldLevel_ExtractType_Call
- type FieldLevel_FieldName_Call
- type FieldLevel_Field_Call
- type FieldLevel_GetStructFieldOK2_Call
- func (_c *FieldLevel_GetStructFieldOK2_Call) Return(_a0 reflect.Value, _a1 reflect.Kind, _a2 bool, _a3 bool) *FieldLevel_GetStructFieldOK2_Call
- func (_c *FieldLevel_GetStructFieldOK2_Call) Run(run func()) *FieldLevel_GetStructFieldOK2_Call
- func (_c *FieldLevel_GetStructFieldOK2_Call) RunAndReturn(run func() (reflect.Value, reflect.Kind, bool, bool)) *FieldLevel_GetStructFieldOK2_Call
- type FieldLevel_GetStructFieldOKAdvanced2_Call
- func (_c *FieldLevel_GetStructFieldOKAdvanced2_Call) Return(_a0 reflect.Value, _a1 reflect.Kind, _a2 bool, _a3 bool) *FieldLevel_GetStructFieldOKAdvanced2_Call
- func (_c *FieldLevel_GetStructFieldOKAdvanced2_Call) Run(run func(val reflect.Value, namespace string)) *FieldLevel_GetStructFieldOKAdvanced2_Call
- func (_c *FieldLevel_GetStructFieldOKAdvanced2_Call) RunAndReturn(run func(reflect.Value, string) (reflect.Value, reflect.Kind, bool, bool)) *FieldLevel_GetStructFieldOKAdvanced2_Call
- type FieldLevel_GetStructFieldOKAdvanced_Call
- func (_c *FieldLevel_GetStructFieldOKAdvanced_Call) Return(_a0 reflect.Value, _a1 reflect.Kind, _a2 bool) *FieldLevel_GetStructFieldOKAdvanced_Call
- func (_c *FieldLevel_GetStructFieldOKAdvanced_Call) Run(run func(val reflect.Value, namespace string)) *FieldLevel_GetStructFieldOKAdvanced_Call
- func (_c *FieldLevel_GetStructFieldOKAdvanced_Call) RunAndReturn(run func(reflect.Value, string) (reflect.Value, reflect.Kind, bool)) *FieldLevel_GetStructFieldOKAdvanced_Call
- type FieldLevel_GetStructFieldOK_Call
- func (_c *FieldLevel_GetStructFieldOK_Call) Return(_a0 reflect.Value, _a1 reflect.Kind, _a2 bool) *FieldLevel_GetStructFieldOK_Call
- func (_c *FieldLevel_GetStructFieldOK_Call) Run(run func()) *FieldLevel_GetStructFieldOK_Call
- func (_c *FieldLevel_GetStructFieldOK_Call) RunAndReturn(run func() (reflect.Value, reflect.Kind, bool)) *FieldLevel_GetStructFieldOK_Call
- type FieldLevel_GetTag_Call
- type FieldLevel_Param_Call
- type FieldLevel_Parent_Call
- type FieldLevel_StructFieldName_Call
- type FieldLevel_Top_Call
- type FieldValidator
- type FieldValidator_Expecter
- type FieldValidator_ValidateField_Call
- func (_c *FieldValidator_ValidateField_Call) Return(_a0 bool) *FieldValidator_ValidateField_Call
- func (_c *FieldValidator_ValidateField_Call) Run(run func(ctx context.Context, fl validator.FieldLevel)) *FieldValidator_ValidateField_Call
- func (_c *FieldValidator_ValidateField_Call) RunAndReturn(run func(context.Context, validator.FieldLevel) bool) *FieldValidator_ValidateField_Call
- type FieldValidator_ValidatorName_Call
- func (_c *FieldValidator_ValidatorName_Call) Return(_a0 string) *FieldValidator_ValidatorName_Call
- func (_c *FieldValidator_ValidatorName_Call) Run(run func()) *FieldValidator_ValidatorName_Call
- func (_c *FieldValidator_ValidatorName_Call) RunAndReturn(run func() string) *FieldValidator_ValidatorName_Call
- type FormDataDecoder
- type FormDataDecoder_Decode_Call
- type FormDataDecoder_Expecter
- type FormDataEncoder
- type FormDataEncoder_Encode_Call
- func (_c *FormDataEncoder_Encode_Call) Return(_a0 url.Values, _a1 error) *FormDataEncoder_Encode_Call
- func (_c *FormDataEncoder_Encode_Call) Run(run func(ctx context.Context, formData interface{})) *FormDataEncoder_Encode_Call
- func (_c *FormDataEncoder_Encode_Call) RunAndReturn(run func(context.Context, interface{}) (url.Values, error)) *FormDataEncoder_Encode_Call
- type FormDataEncoder_Expecter
- type FormDataProvider
- type FormDataProvider_Expecter
- type FormDataProvider_GetFormData_Call
- func (_c *FormDataProvider_GetFormData_Call) Return(_a0 interface{}, _a1 error) *FormDataProvider_GetFormData_Call
- func (_c *FormDataProvider_GetFormData_Call) Run(run func(ctx context.Context, req *web.Request)) *FormDataProvider_GetFormData_Call
- func (_c *FormDataProvider_GetFormData_Call) RunAndReturn(run func(context.Context, *web.Request) (interface{}, error)) *FormDataProvider_GetFormData_Call
- type FormDataValidator
- type FormDataValidator_Expecter
- type FormDataValidator_Validate_Call
- func (_c *FormDataValidator_Validate_Call) Return(_a0 *domain.ValidationInfo, _a1 error) *FormDataValidator_Validate_Call
- func (_c *FormDataValidator_Validate_Call) Run(run func(ctx context.Context, req *web.Request, ...)) *FormDataValidator_Validate_Call
- func (_c *FormDataValidator_Validate_Call) RunAndReturn(...) *FormDataValidator_Validate_Call
- type FormExtension
- type FormExtension_Expecter
- type FormHandler
- func (_m *FormHandler) EXPECT() *FormHandler_Expecter
- func (_m *FormHandler) HandleForm(ctx context.Context, req *web.Request) (*domain.Form, error)
- func (_m *FormHandler) HandleSubmittedForm(ctx context.Context, req *web.Request) (*domain.Form, error)
- func (_m *FormHandler) HandleSubmittedGETForm(ctx context.Context, req *web.Request) (*domain.Form, error)
- func (_m *FormHandler) HandleUnsubmittedForm(ctx context.Context, req *web.Request) (*domain.Form, error)
- type FormHandler_Expecter
- func (_e *FormHandler_Expecter) HandleForm(ctx interface{}, req interface{}) *FormHandler_HandleForm_Call
- func (_e *FormHandler_Expecter) HandleSubmittedForm(ctx interface{}, req interface{}) *FormHandler_HandleSubmittedForm_Call
- func (_e *FormHandler_Expecter) HandleSubmittedGETForm(ctx interface{}, req interface{}) *FormHandler_HandleSubmittedGETForm_Call
- func (_e *FormHandler_Expecter) HandleUnsubmittedForm(ctx interface{}, req interface{}) *FormHandler_HandleUnsubmittedForm_Call
- type FormHandler_HandleForm_Call
- func (_c *FormHandler_HandleForm_Call) Return(_a0 *domain.Form, _a1 error) *FormHandler_HandleForm_Call
- func (_c *FormHandler_HandleForm_Call) Run(run func(ctx context.Context, req *web.Request)) *FormHandler_HandleForm_Call
- func (_c *FormHandler_HandleForm_Call) RunAndReturn(run func(context.Context, *web.Request) (*domain.Form, error)) *FormHandler_HandleForm_Call
- type FormHandler_HandleSubmittedForm_Call
- func (_c *FormHandler_HandleSubmittedForm_Call) Return(_a0 *domain.Form, _a1 error) *FormHandler_HandleSubmittedForm_Call
- func (_c *FormHandler_HandleSubmittedForm_Call) Run(run func(ctx context.Context, req *web.Request)) *FormHandler_HandleSubmittedForm_Call
- func (_c *FormHandler_HandleSubmittedForm_Call) RunAndReturn(run func(context.Context, *web.Request) (*domain.Form, error)) *FormHandler_HandleSubmittedForm_Call
- type FormHandler_HandleSubmittedGETForm_Call
- func (_c *FormHandler_HandleSubmittedGETForm_Call) Return(_a0 *domain.Form, _a1 error) *FormHandler_HandleSubmittedGETForm_Call
- func (_c *FormHandler_HandleSubmittedGETForm_Call) Run(run func(ctx context.Context, req *web.Request)) *FormHandler_HandleSubmittedGETForm_Call
- func (_c *FormHandler_HandleSubmittedGETForm_Call) RunAndReturn(run func(context.Context, *web.Request) (*domain.Form, error)) *FormHandler_HandleSubmittedGETForm_Call
- type FormHandler_HandleUnsubmittedForm_Call
- func (_c *FormHandler_HandleUnsubmittedForm_Call) Return(_a0 *domain.Form, _a1 error) *FormHandler_HandleUnsubmittedForm_Call
- func (_c *FormHandler_HandleUnsubmittedForm_Call) Run(run func(ctx context.Context, req *web.Request)) *FormHandler_HandleUnsubmittedForm_Call
- func (_c *FormHandler_HandleUnsubmittedForm_Call) RunAndReturn(run func(context.Context, *web.Request) (*domain.Form, error)) *FormHandler_HandleUnsubmittedForm_Call
- type FormService
- type FormService_Expecter
- type NamedFormInstance
- type StructLevel
- func (_m *StructLevel) Current() reflect.Value
- func (_m *StructLevel) EXPECT() *StructLevel_Expecter
- func (_m *StructLevel) ExtractType(field reflect.Value) (reflect.Value, reflect.Kind, bool)
- func (_m *StructLevel) Parent() reflect.Value
- func (_m *StructLevel) ReportError(field interface{}, fieldName string, structFieldName string, tag string, ...)
- func (_m *StructLevel) ReportValidationErrors(relativeNamespace string, relativeActualNamespace string, ...)
- func (_m *StructLevel) Top() reflect.Value
- func (_m *StructLevel) Validator() *validator.Validate
- type StructLevel_Current_Call
- type StructLevel_Expecter
- func (_e *StructLevel_Expecter) Current() *StructLevel_Current_Call
- func (_e *StructLevel_Expecter) ExtractType(field interface{}) *StructLevel_ExtractType_Call
- func (_e *StructLevel_Expecter) Parent() *StructLevel_Parent_Call
- func (_e *StructLevel_Expecter) ReportError(field interface{}, fieldName interface{}, structFieldName interface{}, ...) *StructLevel_ReportError_Call
- func (_e *StructLevel_Expecter) ReportValidationErrors(relativeNamespace interface{}, relativeActualNamespace interface{}, ...) *StructLevel_ReportValidationErrors_Call
- func (_e *StructLevel_Expecter) Top() *StructLevel_Top_Call
- func (_e *StructLevel_Expecter) Validator() *StructLevel_Validator_Call
- type StructLevel_ExtractType_Call
- func (_c *StructLevel_ExtractType_Call) Return(value reflect.Value, kind reflect.Kind, nullable bool) *StructLevel_ExtractType_Call
- func (_c *StructLevel_ExtractType_Call) Run(run func(field reflect.Value)) *StructLevel_ExtractType_Call
- func (_c *StructLevel_ExtractType_Call) RunAndReturn(run func(reflect.Value) (reflect.Value, reflect.Kind, bool)) *StructLevel_ExtractType_Call
- type StructLevel_Parent_Call
- type StructLevel_ReportError_Call
- type StructLevel_ReportValidationErrors_Call
- func (_c *StructLevel_ReportValidationErrors_Call) Return() *StructLevel_ReportValidationErrors_Call
- func (_c *StructLevel_ReportValidationErrors_Call) Run(run func(relativeNamespace string, relativeActualNamespace string, ...)) *StructLevel_ReportValidationErrors_Call
- func (_c *StructLevel_ReportValidationErrors_Call) RunAndReturn(run func(string, string, validator.ValidationErrors)) *StructLevel_ReportValidationErrors_Call
- type StructLevel_Top_Call
- type StructLevel_Validator_Call
- type StructValidator
- type StructValidator_Expecter
- type StructValidator_StructType_Call
- func (_c *StructValidator_StructType_Call) Return(_a0 interface{}) *StructValidator_StructType_Call
- func (_c *StructValidator_StructType_Call) Run(run func()) *StructValidator_StructType_Call
- func (_c *StructValidator_StructType_Call) RunAndReturn(run func() interface{}) *StructValidator_StructType_Call
- type StructValidator_ValidateStruct_Call
- func (_c *StructValidator_ValidateStruct_Call) Return() *StructValidator_ValidateStruct_Call
- func (_c *StructValidator_ValidateStruct_Call) Run(run func(ctx context.Context, sl validator.StructLevel)) *StructValidator_ValidateStruct_Call
- func (_c *StructValidator_ValidateStruct_Call) RunAndReturn(run func(context.Context, validator.StructLevel)) *StructValidator_ValidateStruct_Call
- type ValidatorProvider
- func (_m *ValidatorProvider) EXPECT() *ValidatorProvider_Expecter
- func (_m *ValidatorProvider) ErrorsToValidationInfo(err error) domain.ValidationInfo
- func (_m *ValidatorProvider) GetValidator() *validator.Validate
- func (_m *ValidatorProvider) Validate(ctx context.Context, req *web.Request, value interface{}) domain.ValidationInfo
- type ValidatorProvider_ErrorsToValidationInfo_Call
- func (_c *ValidatorProvider_ErrorsToValidationInfo_Call) Return(_a0 domain.ValidationInfo) *ValidatorProvider_ErrorsToValidationInfo_Call
- func (_c *ValidatorProvider_ErrorsToValidationInfo_Call) Run(run func(err error)) *ValidatorProvider_ErrorsToValidationInfo_Call
- func (_c *ValidatorProvider_ErrorsToValidationInfo_Call) RunAndReturn(run func(error) domain.ValidationInfo) *ValidatorProvider_ErrorsToValidationInfo_Call
- type ValidatorProvider_Expecter
- func (_e *ValidatorProvider_Expecter) ErrorsToValidationInfo(err interface{}) *ValidatorProvider_ErrorsToValidationInfo_Call
- func (_e *ValidatorProvider_Expecter) GetValidator() *ValidatorProvider_GetValidator_Call
- func (_e *ValidatorProvider_Expecter) Validate(ctx interface{}, req interface{}, value interface{}) *ValidatorProvider_Validate_Call
- type ValidatorProvider_GetValidator_Call
- func (_c *ValidatorProvider_GetValidator_Call) Return(_a0 *validator.Validate) *ValidatorProvider_GetValidator_Call
- func (_c *ValidatorProvider_GetValidator_Call) Run(run func()) *ValidatorProvider_GetValidator_Call
- func (_c *ValidatorProvider_GetValidator_Call) RunAndReturn(run func() *validator.Validate) *ValidatorProvider_GetValidator_Call
- type ValidatorProvider_Validate_Call
- func (_c *ValidatorProvider_Validate_Call) Return(_a0 domain.ValidationInfo) *ValidatorProvider_Validate_Call
- func (_c *ValidatorProvider_Validate_Call) Run(run func(ctx context.Context, req *web.Request, value interface{})) *ValidatorProvider_Validate_Call
- func (_c *ValidatorProvider_Validate_Call) RunAndReturn(run func(context.Context, *web.Request, interface{}) domain.ValidationInfo) *ValidatorProvider_Validate_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompleteFormService ¶
CompleteFormService is an autogenerated mock type for the CompleteFormService type
func NewCompleteFormService ¶ added in v1.1.2
func NewCompleteFormService(t interface { mock.TestingT Cleanup(func()) }) *CompleteFormService
NewCompleteFormService creates a new instance of CompleteFormService. 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 (*CompleteFormService) Decode ¶
func (_m *CompleteFormService) Decode(ctx context.Context, req *web.Request, values url.Values, formData interface{}) (interface{}, error)
Decode provides a mock function with given fields: ctx, req, values, formData
func (*CompleteFormService) EXPECT ¶ added in v1.1.2
func (_m *CompleteFormService) EXPECT() *CompleteFormService_Expecter
func (*CompleteFormService) GetFormData ¶
func (_m *CompleteFormService) GetFormData(ctx context.Context, req *web.Request) (interface{}, error)
GetFormData provides a mock function with given fields: ctx, req
func (*CompleteFormService) Validate ¶
func (_m *CompleteFormService) Validate(ctx context.Context, req *web.Request, validatorProvider domain.ValidatorProvider, formData interface{}) (*domain.ValidationInfo, error)
Validate provides a mock function with given fields: ctx, req, validatorProvider, formData
type CompleteFormService_Decode_Call ¶ added in v1.1.2
CompleteFormService_Decode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Decode'
func (*CompleteFormService_Decode_Call) Return ¶ added in v1.1.2
func (_c *CompleteFormService_Decode_Call) Return(_a0 interface{}, _a1 error) *CompleteFormService_Decode_Call
func (*CompleteFormService_Decode_Call) Run ¶ added in v1.1.2
func (_c *CompleteFormService_Decode_Call) Run(run func(ctx context.Context, req *web.Request, values url.Values, formData interface{})) *CompleteFormService_Decode_Call
func (*CompleteFormService_Decode_Call) RunAndReturn ¶ added in v1.1.2
func (_c *CompleteFormService_Decode_Call) RunAndReturn(run func(context.Context, *web.Request, url.Values, interface{}) (interface{}, error)) *CompleteFormService_Decode_Call
type CompleteFormService_Expecter ¶ added in v1.1.2
type CompleteFormService_Expecter struct {
// contains filtered or unexported fields
}
func (*CompleteFormService_Expecter) Decode ¶ added in v1.1.2
func (_e *CompleteFormService_Expecter) Decode(ctx interface{}, req interface{}, values interface{}, formData interface{}) *CompleteFormService_Decode_Call
Decode is a helper method to define mock.On call
- ctx context.Context
- req *web.Request
- values url.Values
- formData interface{}
func (*CompleteFormService_Expecter) GetFormData ¶ added in v1.1.2
func (_e *CompleteFormService_Expecter) GetFormData(ctx interface{}, req interface{}) *CompleteFormService_GetFormData_Call
GetFormData is a helper method to define mock.On call
- ctx context.Context
- req *web.Request
func (*CompleteFormService_Expecter) Validate ¶ added in v1.1.2
func (_e *CompleteFormService_Expecter) Validate(ctx interface{}, req interface{}, validatorProvider interface{}, formData interface{}) *CompleteFormService_Validate_Call
Validate is a helper method to define mock.On call
- ctx context.Context
- req *web.Request
- validatorProvider domain.ValidatorProvider
- formData interface{}
type CompleteFormService_GetFormData_Call ¶ added in v1.1.2
CompleteFormService_GetFormData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFormData'
func (*CompleteFormService_GetFormData_Call) Return ¶ added in v1.1.2
func (_c *CompleteFormService_GetFormData_Call) Return(_a0 interface{}, _a1 error) *CompleteFormService_GetFormData_Call
func (*CompleteFormService_GetFormData_Call) Run ¶ added in v1.1.2
func (_c *CompleteFormService_GetFormData_Call) Run(run func(ctx context.Context, req *web.Request)) *CompleteFormService_GetFormData_Call
func (*CompleteFormService_GetFormData_Call) RunAndReturn ¶ added in v1.1.2
func (_c *CompleteFormService_GetFormData_Call) RunAndReturn(run func(context.Context, *web.Request) (interface{}, error)) *CompleteFormService_GetFormData_Call
type CompleteFormService_Validate_Call ¶ added in v1.1.2
CompleteFormService_Validate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Validate'
func (*CompleteFormService_Validate_Call) Return ¶ added in v1.1.2
func (_c *CompleteFormService_Validate_Call) Return(_a0 *domain.ValidationInfo, _a1 error) *CompleteFormService_Validate_Call
func (*CompleteFormService_Validate_Call) Run ¶ added in v1.1.2
func (_c *CompleteFormService_Validate_Call) Run(run func(ctx context.Context, req *web.Request, validatorProvider domain.ValidatorProvider, formData interface{})) *CompleteFormService_Validate_Call
func (*CompleteFormService_Validate_Call) RunAndReturn ¶ added in v1.1.2
func (_c *CompleteFormService_Validate_Call) RunAndReturn(run func(context.Context, *web.Request, domain.ValidatorProvider, interface{}) (*domain.ValidationInfo, error)) *CompleteFormService_Validate_Call
type DefaultFormDataDecoder ¶
DefaultFormDataDecoder is an autogenerated mock type for the DefaultFormDataDecoder type
func NewDefaultFormDataDecoder ¶ added in v1.1.2
func NewDefaultFormDataDecoder(t interface { mock.TestingT Cleanup(func()) }) *DefaultFormDataDecoder
NewDefaultFormDataDecoder creates a new instance of DefaultFormDataDecoder. 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 (*DefaultFormDataDecoder) Decode ¶
func (_m *DefaultFormDataDecoder) Decode(ctx context.Context, req *web.Request, values url.Values, formData interface{}) (interface{}, error)
Decode provides a mock function with given fields: ctx, req, values, formData
func (*DefaultFormDataDecoder) EXPECT ¶ added in v1.1.2
func (_m *DefaultFormDataDecoder) EXPECT() *DefaultFormDataDecoder_Expecter
type DefaultFormDataDecoder_Decode_Call ¶ added in v1.1.2
DefaultFormDataDecoder_Decode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Decode'
func (*DefaultFormDataDecoder_Decode_Call) Return ¶ added in v1.1.2
func (_c *DefaultFormDataDecoder_Decode_Call) Return(_a0 interface{}, _a1 error) *DefaultFormDataDecoder_Decode_Call
func (*DefaultFormDataDecoder_Decode_Call) Run ¶ added in v1.1.2
func (_c *DefaultFormDataDecoder_Decode_Call) Run(run func(ctx context.Context, req *web.Request, values url.Values, formData interface{})) *DefaultFormDataDecoder_Decode_Call
func (*DefaultFormDataDecoder_Decode_Call) RunAndReturn ¶ added in v1.1.2
func (_c *DefaultFormDataDecoder_Decode_Call) RunAndReturn(run func(context.Context, *web.Request, url.Values, interface{}) (interface{}, error)) *DefaultFormDataDecoder_Decode_Call
type DefaultFormDataDecoder_Expecter ¶ added in v1.1.2
type DefaultFormDataDecoder_Expecter struct {
// contains filtered or unexported fields
}
func (*DefaultFormDataDecoder_Expecter) Decode ¶ added in v1.1.2
func (_e *DefaultFormDataDecoder_Expecter) Decode(ctx interface{}, req interface{}, values interface{}, formData interface{}) *DefaultFormDataDecoder_Decode_Call
Decode is a helper method to define mock.On call
- ctx context.Context
- req *web.Request
- values url.Values
- formData interface{}
type DefaultFormDataEncoder ¶ added in v1.1.1
DefaultFormDataEncoder is an autogenerated mock type for the DefaultFormDataEncoder type
func NewDefaultFormDataEncoder ¶ added in v1.1.2
func NewDefaultFormDataEncoder(t interface { mock.TestingT Cleanup(func()) }) *DefaultFormDataEncoder
NewDefaultFormDataEncoder creates a new instance of DefaultFormDataEncoder. 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 (*DefaultFormDataEncoder) EXPECT ¶ added in v1.1.2
func (_m *DefaultFormDataEncoder) EXPECT() *DefaultFormDataEncoder_Expecter
type DefaultFormDataEncoder_Encode_Call ¶ added in v1.1.2
DefaultFormDataEncoder_Encode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Encode'
func (*DefaultFormDataEncoder_Encode_Call) Return ¶ added in v1.1.2
func (_c *DefaultFormDataEncoder_Encode_Call) Return(_a0 url.Values, _a1 error) *DefaultFormDataEncoder_Encode_Call
func (*DefaultFormDataEncoder_Encode_Call) Run ¶ added in v1.1.2
func (_c *DefaultFormDataEncoder_Encode_Call) Run(run func(ctx context.Context, formData interface{})) *DefaultFormDataEncoder_Encode_Call
func (*DefaultFormDataEncoder_Encode_Call) RunAndReturn ¶ added in v1.1.2
func (_c *DefaultFormDataEncoder_Encode_Call) RunAndReturn(run func(context.Context, interface{}) (url.Values, error)) *DefaultFormDataEncoder_Encode_Call
type DefaultFormDataEncoder_Expecter ¶ added in v1.1.2
type DefaultFormDataEncoder_Expecter struct {
// contains filtered or unexported fields
}
func (*DefaultFormDataEncoder_Expecter) Encode ¶ added in v1.1.2
func (_e *DefaultFormDataEncoder_Expecter) Encode(ctx interface{}, formData interface{}) *DefaultFormDataEncoder_Encode_Call
Encode is a helper method to define mock.On call
- ctx context.Context
- formData interface{}
type DefaultFormDataProvider ¶
DefaultFormDataProvider is an autogenerated mock type for the DefaultFormDataProvider type
func NewDefaultFormDataProvider ¶ added in v1.1.2
func NewDefaultFormDataProvider(t interface { mock.TestingT Cleanup(func()) }) *DefaultFormDataProvider
NewDefaultFormDataProvider creates a new instance of DefaultFormDataProvider. 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 (*DefaultFormDataProvider) EXPECT ¶ added in v1.1.2
func (_m *DefaultFormDataProvider) EXPECT() *DefaultFormDataProvider_Expecter
func (*DefaultFormDataProvider) GetFormData ¶
func (_m *DefaultFormDataProvider) GetFormData(ctx context.Context, req *web.Request) (interface{}, error)
GetFormData provides a mock function with given fields: ctx, req
type DefaultFormDataProvider_Expecter ¶ added in v1.1.2
type DefaultFormDataProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*DefaultFormDataProvider_Expecter) GetFormData ¶ added in v1.1.2
func (_e *DefaultFormDataProvider_Expecter) GetFormData(ctx interface{}, req interface{}) *DefaultFormDataProvider_GetFormData_Call
GetFormData is a helper method to define mock.On call
- ctx context.Context
- req *web.Request
type DefaultFormDataProvider_GetFormData_Call ¶ added in v1.1.2
DefaultFormDataProvider_GetFormData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFormData'
func (*DefaultFormDataProvider_GetFormData_Call) Return ¶ added in v1.1.2
func (_c *DefaultFormDataProvider_GetFormData_Call) Return(_a0 interface{}, _a1 error) *DefaultFormDataProvider_GetFormData_Call
func (*DefaultFormDataProvider_GetFormData_Call) Run ¶ added in v1.1.2
func (_c *DefaultFormDataProvider_GetFormData_Call) Run(run func(ctx context.Context, req *web.Request)) *DefaultFormDataProvider_GetFormData_Call
func (*DefaultFormDataProvider_GetFormData_Call) RunAndReturn ¶ added in v1.1.2
func (_c *DefaultFormDataProvider_GetFormData_Call) RunAndReturn(run func(context.Context, *web.Request) (interface{}, error)) *DefaultFormDataProvider_GetFormData_Call
type DefaultFormDataValidator ¶
DefaultFormDataValidator is an autogenerated mock type for the DefaultFormDataValidator type
func NewDefaultFormDataValidator ¶ added in v1.1.2
func NewDefaultFormDataValidator(t interface { mock.TestingT Cleanup(func()) }) *DefaultFormDataValidator
NewDefaultFormDataValidator creates a new instance of DefaultFormDataValidator. 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 (*DefaultFormDataValidator) EXPECT ¶ added in v1.1.2
func (_m *DefaultFormDataValidator) EXPECT() *DefaultFormDataValidator_Expecter
func (*DefaultFormDataValidator) Validate ¶
func (_m *DefaultFormDataValidator) Validate(ctx context.Context, req *web.Request, validatorProvider domain.ValidatorProvider, formData interface{}) (*domain.ValidationInfo, error)
Validate provides a mock function with given fields: ctx, req, validatorProvider, formData
type DefaultFormDataValidator_Expecter ¶ added in v1.1.2
type DefaultFormDataValidator_Expecter struct {
// contains filtered or unexported fields
}
func (*DefaultFormDataValidator_Expecter) Validate ¶ added in v1.1.2
func (_e *DefaultFormDataValidator_Expecter) Validate(ctx interface{}, req interface{}, validatorProvider interface{}, formData interface{}) *DefaultFormDataValidator_Validate_Call
Validate is a helper method to define mock.On call
- ctx context.Context
- req *web.Request
- validatorProvider domain.ValidatorProvider
- formData interface{}
type DefaultFormDataValidator_Validate_Call ¶ added in v1.1.2
DefaultFormDataValidator_Validate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Validate'
func (*DefaultFormDataValidator_Validate_Call) Return ¶ added in v1.1.2
func (_c *DefaultFormDataValidator_Validate_Call) Return(_a0 *domain.ValidationInfo, _a1 error) *DefaultFormDataValidator_Validate_Call
func (*DefaultFormDataValidator_Validate_Call) Run ¶ added in v1.1.2
func (_c *DefaultFormDataValidator_Validate_Call) Run(run func(ctx context.Context, req *web.Request, validatorProvider domain.ValidatorProvider, formData interface{})) *DefaultFormDataValidator_Validate_Call
func (*DefaultFormDataValidator_Validate_Call) RunAndReturn ¶ added in v1.1.2
func (_c *DefaultFormDataValidator_Validate_Call) RunAndReturn(run func(context.Context, *web.Request, domain.ValidatorProvider, interface{}) (*domain.ValidationInfo, error)) *DefaultFormDataValidator_Validate_Call
type FieldError ¶
FieldError is an autogenerated mock type for the FieldError type
func NewFieldError ¶ added in v1.1.2
func NewFieldError(t interface { mock.TestingT Cleanup(func()) }) *FieldError
NewFieldError creates a new instance of FieldError. 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 (*FieldError) ActualTag ¶
func (_m *FieldError) ActualTag() string
ActualTag provides a mock function with given fields:
func (*FieldError) EXPECT ¶ added in v1.1.2
func (_m *FieldError) EXPECT() *FieldError_Expecter
func (*FieldError) Error ¶ added in v1.1.2
func (_m *FieldError) Error() string
Error provides a mock function with given fields:
func (*FieldError) Field ¶
func (_m *FieldError) Field() string
Field provides a mock function with given fields:
func (*FieldError) Kind ¶
func (_m *FieldError) Kind() reflect.Kind
Kind provides a mock function with given fields:
func (*FieldError) Namespace ¶
func (_m *FieldError) Namespace() string
Namespace provides a mock function with given fields:
func (*FieldError) Param ¶
func (_m *FieldError) Param() string
Param provides a mock function with given fields:
func (*FieldError) StructField ¶
func (_m *FieldError) StructField() string
StructField provides a mock function with given fields:
func (*FieldError) StructNamespace ¶
func (_m *FieldError) StructNamespace() string
StructNamespace provides a mock function with given fields:
func (*FieldError) Tag ¶
func (_m *FieldError) Tag() string
Tag provides a mock function with given fields:
func (*FieldError) Translate ¶
func (_m *FieldError) Translate(_a0 ut.Translator) string
Translate provides a mock function with given fields: _a0
func (*FieldError) Type ¶
func (_m *FieldError) Type() reflect.Type
Type provides a mock function with given fields:
func (*FieldError) Value ¶
func (_m *FieldError) Value() interface{}
Value provides a mock function with given fields:
type FieldError_ActualTag_Call ¶ added in v1.1.2
FieldError_ActualTag_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ActualTag'
func (*FieldError_ActualTag_Call) Return ¶ added in v1.1.2
func (_c *FieldError_ActualTag_Call) Return(_a0 string) *FieldError_ActualTag_Call
func (*FieldError_ActualTag_Call) Run ¶ added in v1.1.2
func (_c *FieldError_ActualTag_Call) Run(run func()) *FieldError_ActualTag_Call
func (*FieldError_ActualTag_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FieldError_ActualTag_Call) RunAndReturn(run func() string) *FieldError_ActualTag_Call
type FieldError_Error_Call ¶ added in v1.1.2
FieldError_Error_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Error'
func (*FieldError_Error_Call) Return ¶ added in v1.1.2
func (_c *FieldError_Error_Call) Return(_a0 string) *FieldError_Error_Call
func (*FieldError_Error_Call) Run ¶ added in v1.1.2
func (_c *FieldError_Error_Call) Run(run func()) *FieldError_Error_Call
func (*FieldError_Error_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FieldError_Error_Call) RunAndReturn(run func() string) *FieldError_Error_Call
type FieldError_Expecter ¶ added in v1.1.2
type FieldError_Expecter struct {
// contains filtered or unexported fields
}
func (*FieldError_Expecter) ActualTag ¶ added in v1.1.2
func (_e *FieldError_Expecter) ActualTag() *FieldError_ActualTag_Call
ActualTag is a helper method to define mock.On call
func (*FieldError_Expecter) Error ¶ added in v1.1.2
func (_e *FieldError_Expecter) Error() *FieldError_Error_Call
Error is a helper method to define mock.On call
func (*FieldError_Expecter) Field ¶ added in v1.1.2
func (_e *FieldError_Expecter) Field() *FieldError_Field_Call
Field is a helper method to define mock.On call
func (*FieldError_Expecter) Kind ¶ added in v1.1.2
func (_e *FieldError_Expecter) Kind() *FieldError_Kind_Call
Kind is a helper method to define mock.On call
func (*FieldError_Expecter) Namespace ¶ added in v1.1.2
func (_e *FieldError_Expecter) Namespace() *FieldError_Namespace_Call
Namespace is a helper method to define mock.On call
func (*FieldError_Expecter) Param ¶ added in v1.1.2
func (_e *FieldError_Expecter) Param() *FieldError_Param_Call
Param is a helper method to define mock.On call
func (*FieldError_Expecter) StructField ¶ added in v1.1.2
func (_e *FieldError_Expecter) StructField() *FieldError_StructField_Call
StructField is a helper method to define mock.On call
func (*FieldError_Expecter) StructNamespace ¶ added in v1.1.2
func (_e *FieldError_Expecter) StructNamespace() *FieldError_StructNamespace_Call
StructNamespace is a helper method to define mock.On call
func (*FieldError_Expecter) Tag ¶ added in v1.1.2
func (_e *FieldError_Expecter) Tag() *FieldError_Tag_Call
Tag is a helper method to define mock.On call
func (*FieldError_Expecter) Translate ¶ added in v1.1.2
func (_e *FieldError_Expecter) Translate(_a0 interface{}) *FieldError_Translate_Call
Translate is a helper method to define mock.On call
- _a0 ut.Translator
func (*FieldError_Expecter) Type ¶ added in v1.1.2
func (_e *FieldError_Expecter) Type() *FieldError_Type_Call
Type is a helper method to define mock.On call
func (*FieldError_Expecter) Value ¶ added in v1.1.2
func (_e *FieldError_Expecter) Value() *FieldError_Value_Call
Value is a helper method to define mock.On call
type FieldError_Field_Call ¶ added in v1.1.2
FieldError_Field_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Field'
func (*FieldError_Field_Call) Return ¶ added in v1.1.2
func (_c *FieldError_Field_Call) Return(_a0 string) *FieldError_Field_Call
func (*FieldError_Field_Call) Run ¶ added in v1.1.2
func (_c *FieldError_Field_Call) Run(run func()) *FieldError_Field_Call
func (*FieldError_Field_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FieldError_Field_Call) RunAndReturn(run func() string) *FieldError_Field_Call
type FieldError_Kind_Call ¶ added in v1.1.2
FieldError_Kind_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Kind'
func (*FieldError_Kind_Call) Return ¶ added in v1.1.2
func (_c *FieldError_Kind_Call) Return(_a0 reflect.Kind) *FieldError_Kind_Call
func (*FieldError_Kind_Call) Run ¶ added in v1.1.2
func (_c *FieldError_Kind_Call) Run(run func()) *FieldError_Kind_Call
func (*FieldError_Kind_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FieldError_Kind_Call) RunAndReturn(run func() reflect.Kind) *FieldError_Kind_Call
type FieldError_Namespace_Call ¶ added in v1.1.2
FieldError_Namespace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Namespace'
func (*FieldError_Namespace_Call) Return ¶ added in v1.1.2
func (_c *FieldError_Namespace_Call) Return(_a0 string) *FieldError_Namespace_Call
func (*FieldError_Namespace_Call) Run ¶ added in v1.1.2
func (_c *FieldError_Namespace_Call) Run(run func()) *FieldError_Namespace_Call
func (*FieldError_Namespace_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FieldError_Namespace_Call) RunAndReturn(run func() string) *FieldError_Namespace_Call
type FieldError_Param_Call ¶ added in v1.1.2
FieldError_Param_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Param'
func (*FieldError_Param_Call) Return ¶ added in v1.1.2
func (_c *FieldError_Param_Call) Return(_a0 string) *FieldError_Param_Call
func (*FieldError_Param_Call) Run ¶ added in v1.1.2
func (_c *FieldError_Param_Call) Run(run func()) *FieldError_Param_Call
func (*FieldError_Param_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FieldError_Param_Call) RunAndReturn(run func() string) *FieldError_Param_Call
type FieldError_StructField_Call ¶ added in v1.1.2
FieldError_StructField_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StructField'
func (*FieldError_StructField_Call) Return ¶ added in v1.1.2
func (_c *FieldError_StructField_Call) Return(_a0 string) *FieldError_StructField_Call
func (*FieldError_StructField_Call) Run ¶ added in v1.1.2
func (_c *FieldError_StructField_Call) Run(run func()) *FieldError_StructField_Call
func (*FieldError_StructField_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FieldError_StructField_Call) RunAndReturn(run func() string) *FieldError_StructField_Call
type FieldError_StructNamespace_Call ¶ added in v1.1.2
FieldError_StructNamespace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StructNamespace'
func (*FieldError_StructNamespace_Call) Return ¶ added in v1.1.2
func (_c *FieldError_StructNamespace_Call) Return(_a0 string) *FieldError_StructNamespace_Call
func (*FieldError_StructNamespace_Call) Run ¶ added in v1.1.2
func (_c *FieldError_StructNamespace_Call) Run(run func()) *FieldError_StructNamespace_Call
func (*FieldError_StructNamespace_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FieldError_StructNamespace_Call) RunAndReturn(run func() string) *FieldError_StructNamespace_Call
type FieldError_Tag_Call ¶ added in v1.1.2
FieldError_Tag_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Tag'
func (*FieldError_Tag_Call) Return ¶ added in v1.1.2
func (_c *FieldError_Tag_Call) Return(_a0 string) *FieldError_Tag_Call
func (*FieldError_Tag_Call) Run ¶ added in v1.1.2
func (_c *FieldError_Tag_Call) Run(run func()) *FieldError_Tag_Call
func (*FieldError_Tag_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FieldError_Tag_Call) RunAndReturn(run func() string) *FieldError_Tag_Call
type FieldError_Translate_Call ¶ added in v1.1.2
FieldError_Translate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Translate'
func (*FieldError_Translate_Call) Return ¶ added in v1.1.2
func (_c *FieldError_Translate_Call) Return(_a0 string) *FieldError_Translate_Call
func (*FieldError_Translate_Call) Run ¶ added in v1.1.2
func (_c *FieldError_Translate_Call) Run(run func(_a0 ut.Translator)) *FieldError_Translate_Call
func (*FieldError_Translate_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FieldError_Translate_Call) RunAndReturn(run func(ut.Translator) string) *FieldError_Translate_Call
type FieldError_Type_Call ¶ added in v1.1.2
FieldError_Type_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Type'
func (*FieldError_Type_Call) Return ¶ added in v1.1.2
func (_c *FieldError_Type_Call) Return(_a0 reflect.Type) *FieldError_Type_Call
func (*FieldError_Type_Call) Run ¶ added in v1.1.2
func (_c *FieldError_Type_Call) Run(run func()) *FieldError_Type_Call
func (*FieldError_Type_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FieldError_Type_Call) RunAndReturn(run func() reflect.Type) *FieldError_Type_Call
type FieldError_Value_Call ¶ added in v1.1.2
FieldError_Value_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Value'
func (*FieldError_Value_Call) Return ¶ added in v1.1.2
func (_c *FieldError_Value_Call) Return(_a0 interface{}) *FieldError_Value_Call
func (*FieldError_Value_Call) Run ¶ added in v1.1.2
func (_c *FieldError_Value_Call) Run(run func()) *FieldError_Value_Call
func (*FieldError_Value_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FieldError_Value_Call) RunAndReturn(run func() interface{}) *FieldError_Value_Call
type FieldLevel ¶
FieldLevel is an autogenerated mock type for the FieldLevel type
func NewFieldLevel ¶ added in v1.1.2
func NewFieldLevel(t interface { mock.TestingT Cleanup(func()) }) *FieldLevel
NewFieldLevel creates a new instance of FieldLevel. 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 (*FieldLevel) EXPECT ¶ added in v1.1.2
func (_m *FieldLevel) EXPECT() *FieldLevel_Expecter
func (*FieldLevel) ExtractType ¶
ExtractType provides a mock function with given fields: field
func (*FieldLevel) Field ¶
func (_m *FieldLevel) Field() reflect.Value
Field provides a mock function with given fields:
func (*FieldLevel) FieldName ¶
func (_m *FieldLevel) FieldName() string
FieldName provides a mock function with given fields:
func (*FieldLevel) GetStructFieldOK ¶
GetStructFieldOK provides a mock function with given fields:
func (*FieldLevel) GetStructFieldOK2 ¶ added in v1.1.1
GetStructFieldOK2 provides a mock function with given fields:
func (*FieldLevel) GetStructFieldOKAdvanced ¶ added in v1.1.1
func (_m *FieldLevel) GetStructFieldOKAdvanced(val reflect.Value, namespace string) (reflect.Value, reflect.Kind, bool)
GetStructFieldOKAdvanced provides a mock function with given fields: val, namespace
func (*FieldLevel) GetStructFieldOKAdvanced2 ¶ added in v1.1.1
func (_m *FieldLevel) GetStructFieldOKAdvanced2(val reflect.Value, namespace string) (reflect.Value, reflect.Kind, bool, bool)
GetStructFieldOKAdvanced2 provides a mock function with given fields: val, namespace
func (*FieldLevel) GetTag ¶ added in v1.1.1
func (_m *FieldLevel) GetTag() string
GetTag provides a mock function with given fields:
func (*FieldLevel) Param ¶
func (_m *FieldLevel) Param() string
Param provides a mock function with given fields:
func (*FieldLevel) Parent ¶
func (_m *FieldLevel) Parent() reflect.Value
Parent provides a mock function with given fields:
func (*FieldLevel) StructFieldName ¶
func (_m *FieldLevel) StructFieldName() string
StructFieldName provides a mock function with given fields:
func (*FieldLevel) Top ¶
func (_m *FieldLevel) Top() reflect.Value
Top provides a mock function with given fields:
type FieldLevel_Expecter ¶ added in v1.1.2
type FieldLevel_Expecter struct {
// contains filtered or unexported fields
}
func (*FieldLevel_Expecter) ExtractType ¶ added in v1.1.2
func (_e *FieldLevel_Expecter) ExtractType(field interface{}) *FieldLevel_ExtractType_Call
ExtractType is a helper method to define mock.On call
- field reflect.Value
func (*FieldLevel_Expecter) Field ¶ added in v1.1.2
func (_e *FieldLevel_Expecter) Field() *FieldLevel_Field_Call
Field is a helper method to define mock.On call
func (*FieldLevel_Expecter) FieldName ¶ added in v1.1.2
func (_e *FieldLevel_Expecter) FieldName() *FieldLevel_FieldName_Call
FieldName is a helper method to define mock.On call
func (*FieldLevel_Expecter) GetStructFieldOK ¶ added in v1.1.2
func (_e *FieldLevel_Expecter) GetStructFieldOK() *FieldLevel_GetStructFieldOK_Call
GetStructFieldOK is a helper method to define mock.On call
func (*FieldLevel_Expecter) GetStructFieldOK2 ¶ added in v1.1.2
func (_e *FieldLevel_Expecter) GetStructFieldOK2() *FieldLevel_GetStructFieldOK2_Call
GetStructFieldOK2 is a helper method to define mock.On call
func (*FieldLevel_Expecter) GetStructFieldOKAdvanced ¶ added in v1.1.2
func (_e *FieldLevel_Expecter) GetStructFieldOKAdvanced(val interface{}, namespace interface{}) *FieldLevel_GetStructFieldOKAdvanced_Call
GetStructFieldOKAdvanced is a helper method to define mock.On call
- val reflect.Value
- namespace string
func (*FieldLevel_Expecter) GetStructFieldOKAdvanced2 ¶ added in v1.1.2
func (_e *FieldLevel_Expecter) GetStructFieldOKAdvanced2(val interface{}, namespace interface{}) *FieldLevel_GetStructFieldOKAdvanced2_Call
GetStructFieldOKAdvanced2 is a helper method to define mock.On call
- val reflect.Value
- namespace string
func (*FieldLevel_Expecter) GetTag ¶ added in v1.1.2
func (_e *FieldLevel_Expecter) GetTag() *FieldLevel_GetTag_Call
GetTag is a helper method to define mock.On call
func (*FieldLevel_Expecter) Param ¶ added in v1.1.2
func (_e *FieldLevel_Expecter) Param() *FieldLevel_Param_Call
Param is a helper method to define mock.On call
func (*FieldLevel_Expecter) Parent ¶ added in v1.1.2
func (_e *FieldLevel_Expecter) Parent() *FieldLevel_Parent_Call
Parent is a helper method to define mock.On call
func (*FieldLevel_Expecter) StructFieldName ¶ added in v1.1.2
func (_e *FieldLevel_Expecter) StructFieldName() *FieldLevel_StructFieldName_Call
StructFieldName is a helper method to define mock.On call
func (*FieldLevel_Expecter) Top ¶ added in v1.1.2
func (_e *FieldLevel_Expecter) Top() *FieldLevel_Top_Call
Top is a helper method to define mock.On call
type FieldLevel_ExtractType_Call ¶ added in v1.1.2
FieldLevel_ExtractType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExtractType'
func (*FieldLevel_ExtractType_Call) Return ¶ added in v1.1.2
func (_c *FieldLevel_ExtractType_Call) Return(value reflect.Value, kind reflect.Kind, nullable bool) *FieldLevel_ExtractType_Call
func (*FieldLevel_ExtractType_Call) Run ¶ added in v1.1.2
func (_c *FieldLevel_ExtractType_Call) Run(run func(field reflect.Value)) *FieldLevel_ExtractType_Call
func (*FieldLevel_ExtractType_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FieldLevel_ExtractType_Call) RunAndReturn(run func(reflect.Value) (reflect.Value, reflect.Kind, bool)) *FieldLevel_ExtractType_Call
type FieldLevel_FieldName_Call ¶ added in v1.1.2
FieldLevel_FieldName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FieldName'
func (*FieldLevel_FieldName_Call) Return ¶ added in v1.1.2
func (_c *FieldLevel_FieldName_Call) Return(_a0 string) *FieldLevel_FieldName_Call
func (*FieldLevel_FieldName_Call) Run ¶ added in v1.1.2
func (_c *FieldLevel_FieldName_Call) Run(run func()) *FieldLevel_FieldName_Call
func (*FieldLevel_FieldName_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FieldLevel_FieldName_Call) RunAndReturn(run func() string) *FieldLevel_FieldName_Call
type FieldLevel_Field_Call ¶ added in v1.1.2
FieldLevel_Field_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Field'
func (*FieldLevel_Field_Call) Return ¶ added in v1.1.2
func (_c *FieldLevel_Field_Call) Return(_a0 reflect.Value) *FieldLevel_Field_Call
func (*FieldLevel_Field_Call) Run ¶ added in v1.1.2
func (_c *FieldLevel_Field_Call) Run(run func()) *FieldLevel_Field_Call
func (*FieldLevel_Field_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FieldLevel_Field_Call) RunAndReturn(run func() reflect.Value) *FieldLevel_Field_Call
type FieldLevel_GetStructFieldOK2_Call ¶ added in v1.1.2
FieldLevel_GetStructFieldOK2_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStructFieldOK2'
func (*FieldLevel_GetStructFieldOK2_Call) Return ¶ added in v1.1.2
func (_c *FieldLevel_GetStructFieldOK2_Call) Return(_a0 reflect.Value, _a1 reflect.Kind, _a2 bool, _a3 bool) *FieldLevel_GetStructFieldOK2_Call
func (*FieldLevel_GetStructFieldOK2_Call) Run ¶ added in v1.1.2
func (_c *FieldLevel_GetStructFieldOK2_Call) Run(run func()) *FieldLevel_GetStructFieldOK2_Call
func (*FieldLevel_GetStructFieldOK2_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FieldLevel_GetStructFieldOK2_Call) RunAndReturn(run func() (reflect.Value, reflect.Kind, bool, bool)) *FieldLevel_GetStructFieldOK2_Call
type FieldLevel_GetStructFieldOKAdvanced2_Call ¶ added in v1.1.2
FieldLevel_GetStructFieldOKAdvanced2_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStructFieldOKAdvanced2'
func (*FieldLevel_GetStructFieldOKAdvanced2_Call) Return ¶ added in v1.1.2
func (_c *FieldLevel_GetStructFieldOKAdvanced2_Call) Return(_a0 reflect.Value, _a1 reflect.Kind, _a2 bool, _a3 bool) *FieldLevel_GetStructFieldOKAdvanced2_Call
func (*FieldLevel_GetStructFieldOKAdvanced2_Call) Run ¶ added in v1.1.2
func (_c *FieldLevel_GetStructFieldOKAdvanced2_Call) Run(run func(val reflect.Value, namespace string)) *FieldLevel_GetStructFieldOKAdvanced2_Call
func (*FieldLevel_GetStructFieldOKAdvanced2_Call) RunAndReturn ¶ added in v1.1.2
type FieldLevel_GetStructFieldOKAdvanced_Call ¶ added in v1.1.2
FieldLevel_GetStructFieldOKAdvanced_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStructFieldOKAdvanced'
func (*FieldLevel_GetStructFieldOKAdvanced_Call) Return ¶ added in v1.1.2
func (_c *FieldLevel_GetStructFieldOKAdvanced_Call) Return(_a0 reflect.Value, _a1 reflect.Kind, _a2 bool) *FieldLevel_GetStructFieldOKAdvanced_Call
func (*FieldLevel_GetStructFieldOKAdvanced_Call) Run ¶ added in v1.1.2
func (_c *FieldLevel_GetStructFieldOKAdvanced_Call) Run(run func(val reflect.Value, namespace string)) *FieldLevel_GetStructFieldOKAdvanced_Call
func (*FieldLevel_GetStructFieldOKAdvanced_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FieldLevel_GetStructFieldOKAdvanced_Call) RunAndReturn(run func(reflect.Value, string) (reflect.Value, reflect.Kind, bool)) *FieldLevel_GetStructFieldOKAdvanced_Call
type FieldLevel_GetStructFieldOK_Call ¶ added in v1.1.2
FieldLevel_GetStructFieldOK_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStructFieldOK'
func (*FieldLevel_GetStructFieldOK_Call) Return ¶ added in v1.1.2
func (_c *FieldLevel_GetStructFieldOK_Call) Return(_a0 reflect.Value, _a1 reflect.Kind, _a2 bool) *FieldLevel_GetStructFieldOK_Call
func (*FieldLevel_GetStructFieldOK_Call) Run ¶ added in v1.1.2
func (_c *FieldLevel_GetStructFieldOK_Call) Run(run func()) *FieldLevel_GetStructFieldOK_Call
func (*FieldLevel_GetStructFieldOK_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FieldLevel_GetStructFieldOK_Call) RunAndReturn(run func() (reflect.Value, reflect.Kind, bool)) *FieldLevel_GetStructFieldOK_Call
type FieldLevel_GetTag_Call ¶ added in v1.1.2
FieldLevel_GetTag_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTag'
func (*FieldLevel_GetTag_Call) Return ¶ added in v1.1.2
func (_c *FieldLevel_GetTag_Call) Return(_a0 string) *FieldLevel_GetTag_Call
func (*FieldLevel_GetTag_Call) Run ¶ added in v1.1.2
func (_c *FieldLevel_GetTag_Call) Run(run func()) *FieldLevel_GetTag_Call
func (*FieldLevel_GetTag_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FieldLevel_GetTag_Call) RunAndReturn(run func() string) *FieldLevel_GetTag_Call
type FieldLevel_Param_Call ¶ added in v1.1.2
FieldLevel_Param_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Param'
func (*FieldLevel_Param_Call) Return ¶ added in v1.1.2
func (_c *FieldLevel_Param_Call) Return(_a0 string) *FieldLevel_Param_Call
func (*FieldLevel_Param_Call) Run ¶ added in v1.1.2
func (_c *FieldLevel_Param_Call) Run(run func()) *FieldLevel_Param_Call
func (*FieldLevel_Param_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FieldLevel_Param_Call) RunAndReturn(run func() string) *FieldLevel_Param_Call
type FieldLevel_Parent_Call ¶ added in v1.1.2
FieldLevel_Parent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Parent'
func (*FieldLevel_Parent_Call) Return ¶ added in v1.1.2
func (_c *FieldLevel_Parent_Call) Return(_a0 reflect.Value) *FieldLevel_Parent_Call
func (*FieldLevel_Parent_Call) Run ¶ added in v1.1.2
func (_c *FieldLevel_Parent_Call) Run(run func()) *FieldLevel_Parent_Call
func (*FieldLevel_Parent_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FieldLevel_Parent_Call) RunAndReturn(run func() reflect.Value) *FieldLevel_Parent_Call
type FieldLevel_StructFieldName_Call ¶ added in v1.1.2
FieldLevel_StructFieldName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StructFieldName'
func (*FieldLevel_StructFieldName_Call) Return ¶ added in v1.1.2
func (_c *FieldLevel_StructFieldName_Call) Return(_a0 string) *FieldLevel_StructFieldName_Call
func (*FieldLevel_StructFieldName_Call) Run ¶ added in v1.1.2
func (_c *FieldLevel_StructFieldName_Call) Run(run func()) *FieldLevel_StructFieldName_Call
func (*FieldLevel_StructFieldName_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FieldLevel_StructFieldName_Call) RunAndReturn(run func() string) *FieldLevel_StructFieldName_Call
type FieldLevel_Top_Call ¶ added in v1.1.2
FieldLevel_Top_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Top'
func (*FieldLevel_Top_Call) Return ¶ added in v1.1.2
func (_c *FieldLevel_Top_Call) Return(_a0 reflect.Value) *FieldLevel_Top_Call
func (*FieldLevel_Top_Call) Run ¶ added in v1.1.2
func (_c *FieldLevel_Top_Call) Run(run func()) *FieldLevel_Top_Call
func (*FieldLevel_Top_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FieldLevel_Top_Call) RunAndReturn(run func() reflect.Value) *FieldLevel_Top_Call
type FieldValidator ¶
FieldValidator is an autogenerated mock type for the FieldValidator type
func NewFieldValidator ¶ added in v1.1.2
func NewFieldValidator(t interface { mock.TestingT Cleanup(func()) }) *FieldValidator
NewFieldValidator creates a new instance of FieldValidator. 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 (*FieldValidator) EXPECT ¶ added in v1.1.2
func (_m *FieldValidator) EXPECT() *FieldValidator_Expecter
func (*FieldValidator) ValidateField ¶
func (_m *FieldValidator) ValidateField(ctx context.Context, fl validator.FieldLevel) bool
ValidateField provides a mock function with given fields: ctx, fl
func (*FieldValidator) ValidatorName ¶
func (_m *FieldValidator) ValidatorName() string
ValidatorName provides a mock function with given fields:
type FieldValidator_Expecter ¶ added in v1.1.2
type FieldValidator_Expecter struct {
// contains filtered or unexported fields
}
func (*FieldValidator_Expecter) ValidateField ¶ added in v1.1.2
func (_e *FieldValidator_Expecter) ValidateField(ctx interface{}, fl interface{}) *FieldValidator_ValidateField_Call
ValidateField is a helper method to define mock.On call
- ctx context.Context
- fl validator.FieldLevel
func (*FieldValidator_Expecter) ValidatorName ¶ added in v1.1.2
func (_e *FieldValidator_Expecter) ValidatorName() *FieldValidator_ValidatorName_Call
ValidatorName is a helper method to define mock.On call
type FieldValidator_ValidateField_Call ¶ added in v1.1.2
FieldValidator_ValidateField_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateField'
func (*FieldValidator_ValidateField_Call) Return ¶ added in v1.1.2
func (_c *FieldValidator_ValidateField_Call) Return(_a0 bool) *FieldValidator_ValidateField_Call
func (*FieldValidator_ValidateField_Call) Run ¶ added in v1.1.2
func (_c *FieldValidator_ValidateField_Call) Run(run func(ctx context.Context, fl validator.FieldLevel)) *FieldValidator_ValidateField_Call
func (*FieldValidator_ValidateField_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FieldValidator_ValidateField_Call) RunAndReturn(run func(context.Context, validator.FieldLevel) bool) *FieldValidator_ValidateField_Call
type FieldValidator_ValidatorName_Call ¶ added in v1.1.2
FieldValidator_ValidatorName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidatorName'
func (*FieldValidator_ValidatorName_Call) Return ¶ added in v1.1.2
func (_c *FieldValidator_ValidatorName_Call) Return(_a0 string) *FieldValidator_ValidatorName_Call
func (*FieldValidator_ValidatorName_Call) Run ¶ added in v1.1.2
func (_c *FieldValidator_ValidatorName_Call) Run(run func()) *FieldValidator_ValidatorName_Call
func (*FieldValidator_ValidatorName_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FieldValidator_ValidatorName_Call) RunAndReturn(run func() string) *FieldValidator_ValidatorName_Call
type FormDataDecoder ¶
FormDataDecoder is an autogenerated mock type for the FormDataDecoder type
func NewFormDataDecoder ¶ added in v1.1.2
func NewFormDataDecoder(t interface { mock.TestingT Cleanup(func()) }) *FormDataDecoder
NewFormDataDecoder creates a new instance of FormDataDecoder. 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 (*FormDataDecoder) Decode ¶
func (_m *FormDataDecoder) Decode(ctx context.Context, req *web.Request, values url.Values, formData interface{}) (interface{}, error)
Decode provides a mock function with given fields: ctx, req, values, formData
func (*FormDataDecoder) EXPECT ¶ added in v1.1.2
func (_m *FormDataDecoder) EXPECT() *FormDataDecoder_Expecter
type FormDataDecoder_Decode_Call ¶ added in v1.1.2
FormDataDecoder_Decode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Decode'
func (*FormDataDecoder_Decode_Call) Return ¶ added in v1.1.2
func (_c *FormDataDecoder_Decode_Call) Return(_a0 interface{}, _a1 error) *FormDataDecoder_Decode_Call
func (*FormDataDecoder_Decode_Call) Run ¶ added in v1.1.2
func (_c *FormDataDecoder_Decode_Call) Run(run func(ctx context.Context, req *web.Request, values url.Values, formData interface{})) *FormDataDecoder_Decode_Call
func (*FormDataDecoder_Decode_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FormDataDecoder_Decode_Call) RunAndReturn(run func(context.Context, *web.Request, url.Values, interface{}) (interface{}, error)) *FormDataDecoder_Decode_Call
type FormDataDecoder_Expecter ¶ added in v1.1.2
type FormDataDecoder_Expecter struct {
// contains filtered or unexported fields
}
func (*FormDataDecoder_Expecter) Decode ¶ added in v1.1.2
func (_e *FormDataDecoder_Expecter) Decode(ctx interface{}, req interface{}, values interface{}, formData interface{}) *FormDataDecoder_Decode_Call
Decode is a helper method to define mock.On call
- ctx context.Context
- req *web.Request
- values url.Values
- formData interface{}
type FormDataEncoder ¶ added in v1.1.1
FormDataEncoder is an autogenerated mock type for the FormDataEncoder type
func NewFormDataEncoder ¶ added in v1.1.2
func NewFormDataEncoder(t interface { mock.TestingT Cleanup(func()) }) *FormDataEncoder
NewFormDataEncoder creates a new instance of FormDataEncoder. 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 (*FormDataEncoder) EXPECT ¶ added in v1.1.2
func (_m *FormDataEncoder) EXPECT() *FormDataEncoder_Expecter
type FormDataEncoder_Encode_Call ¶ added in v1.1.2
FormDataEncoder_Encode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Encode'
func (*FormDataEncoder_Encode_Call) Return ¶ added in v1.1.2
func (_c *FormDataEncoder_Encode_Call) Return(_a0 url.Values, _a1 error) *FormDataEncoder_Encode_Call
func (*FormDataEncoder_Encode_Call) Run ¶ added in v1.1.2
func (_c *FormDataEncoder_Encode_Call) Run(run func(ctx context.Context, formData interface{})) *FormDataEncoder_Encode_Call
func (*FormDataEncoder_Encode_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FormDataEncoder_Encode_Call) RunAndReturn(run func(context.Context, interface{}) (url.Values, error)) *FormDataEncoder_Encode_Call
type FormDataEncoder_Expecter ¶ added in v1.1.2
type FormDataEncoder_Expecter struct {
// contains filtered or unexported fields
}
func (*FormDataEncoder_Expecter) Encode ¶ added in v1.1.2
func (_e *FormDataEncoder_Expecter) Encode(ctx interface{}, formData interface{}) *FormDataEncoder_Encode_Call
Encode is a helper method to define mock.On call
- ctx context.Context
- formData interface{}
type FormDataProvider ¶
FormDataProvider is an autogenerated mock type for the FormDataProvider type
func NewFormDataProvider ¶ added in v1.1.2
func NewFormDataProvider(t interface { mock.TestingT Cleanup(func()) }) *FormDataProvider
NewFormDataProvider creates a new instance of FormDataProvider. 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 (*FormDataProvider) EXPECT ¶ added in v1.1.2
func (_m *FormDataProvider) EXPECT() *FormDataProvider_Expecter
func (*FormDataProvider) GetFormData ¶
GetFormData provides a mock function with given fields: ctx, req
type FormDataProvider_Expecter ¶ added in v1.1.2
type FormDataProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*FormDataProvider_Expecter) GetFormData ¶ added in v1.1.2
func (_e *FormDataProvider_Expecter) GetFormData(ctx interface{}, req interface{}) *FormDataProvider_GetFormData_Call
GetFormData is a helper method to define mock.On call
- ctx context.Context
- req *web.Request
type FormDataProvider_GetFormData_Call ¶ added in v1.1.2
FormDataProvider_GetFormData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFormData'
func (*FormDataProvider_GetFormData_Call) Return ¶ added in v1.1.2
func (_c *FormDataProvider_GetFormData_Call) Return(_a0 interface{}, _a1 error) *FormDataProvider_GetFormData_Call
func (*FormDataProvider_GetFormData_Call) Run ¶ added in v1.1.2
func (_c *FormDataProvider_GetFormData_Call) Run(run func(ctx context.Context, req *web.Request)) *FormDataProvider_GetFormData_Call
func (*FormDataProvider_GetFormData_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FormDataProvider_GetFormData_Call) RunAndReturn(run func(context.Context, *web.Request) (interface{}, error)) *FormDataProvider_GetFormData_Call
type FormDataValidator ¶
FormDataValidator is an autogenerated mock type for the FormDataValidator type
func NewFormDataValidator ¶ added in v1.1.2
func NewFormDataValidator(t interface { mock.TestingT Cleanup(func()) }) *FormDataValidator
NewFormDataValidator creates a new instance of FormDataValidator. 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 (*FormDataValidator) EXPECT ¶ added in v1.1.2
func (_m *FormDataValidator) EXPECT() *FormDataValidator_Expecter
func (*FormDataValidator) Validate ¶
func (_m *FormDataValidator) Validate(ctx context.Context, req *web.Request, validatorProvider domain.ValidatorProvider, formData interface{}) (*domain.ValidationInfo, error)
Validate provides a mock function with given fields: ctx, req, validatorProvider, formData
type FormDataValidator_Expecter ¶ added in v1.1.2
type FormDataValidator_Expecter struct {
// contains filtered or unexported fields
}
func (*FormDataValidator_Expecter) Validate ¶ added in v1.1.2
func (_e *FormDataValidator_Expecter) Validate(ctx interface{}, req interface{}, validatorProvider interface{}, formData interface{}) *FormDataValidator_Validate_Call
Validate is a helper method to define mock.On call
- ctx context.Context
- req *web.Request
- validatorProvider domain.ValidatorProvider
- formData interface{}
type FormDataValidator_Validate_Call ¶ added in v1.1.2
FormDataValidator_Validate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Validate'
func (*FormDataValidator_Validate_Call) Return ¶ added in v1.1.2
func (_c *FormDataValidator_Validate_Call) Return(_a0 *domain.ValidationInfo, _a1 error) *FormDataValidator_Validate_Call
func (*FormDataValidator_Validate_Call) Run ¶ added in v1.1.2
func (_c *FormDataValidator_Validate_Call) Run(run func(ctx context.Context, req *web.Request, validatorProvider domain.ValidatorProvider, formData interface{})) *FormDataValidator_Validate_Call
func (*FormDataValidator_Validate_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FormDataValidator_Validate_Call) RunAndReturn(run func(context.Context, *web.Request, domain.ValidatorProvider, interface{}) (*domain.ValidationInfo, error)) *FormDataValidator_Validate_Call
type FormExtension ¶
FormExtension is an autogenerated mock type for the FormExtension type
func NewFormExtension ¶ added in v1.1.2
func NewFormExtension(t interface { mock.TestingT Cleanup(func()) }) *FormExtension
NewFormExtension creates a new instance of FormExtension. 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 (*FormExtension) EXPECT ¶ added in v1.1.2
func (_m *FormExtension) EXPECT() *FormExtension_Expecter
type FormExtension_Expecter ¶ added in v1.1.2
type FormExtension_Expecter struct {
// contains filtered or unexported fields
}
type FormHandler ¶
FormHandler is an autogenerated mock type for the FormHandler type
func NewFormHandler ¶ added in v1.1.2
func NewFormHandler(t interface { mock.TestingT Cleanup(func()) }) *FormHandler
NewFormHandler creates a new instance of FormHandler. 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 (*FormHandler) EXPECT ¶ added in v1.1.2
func (_m *FormHandler) EXPECT() *FormHandler_Expecter
func (*FormHandler) HandleForm ¶
HandleForm provides a mock function with given fields: ctx, req
func (*FormHandler) HandleSubmittedForm ¶
func (_m *FormHandler) HandleSubmittedForm(ctx context.Context, req *web.Request) (*domain.Form, error)
HandleSubmittedForm provides a mock function with given fields: ctx, req
func (*FormHandler) HandleSubmittedGETForm ¶
func (_m *FormHandler) HandleSubmittedGETForm(ctx context.Context, req *web.Request) (*domain.Form, error)
HandleSubmittedGETForm provides a mock function with given fields: ctx, req
func (*FormHandler) HandleUnsubmittedForm ¶
func (_m *FormHandler) HandleUnsubmittedForm(ctx context.Context, req *web.Request) (*domain.Form, error)
HandleUnsubmittedForm provides a mock function with given fields: ctx, req
type FormHandler_Expecter ¶ added in v1.1.2
type FormHandler_Expecter struct {
// contains filtered or unexported fields
}
func (*FormHandler_Expecter) HandleForm ¶ added in v1.1.2
func (_e *FormHandler_Expecter) HandleForm(ctx interface{}, req interface{}) *FormHandler_HandleForm_Call
HandleForm is a helper method to define mock.On call
- ctx context.Context
- req *web.Request
func (*FormHandler_Expecter) HandleSubmittedForm ¶ added in v1.1.2
func (_e *FormHandler_Expecter) HandleSubmittedForm(ctx interface{}, req interface{}) *FormHandler_HandleSubmittedForm_Call
HandleSubmittedForm is a helper method to define mock.On call
- ctx context.Context
- req *web.Request
func (*FormHandler_Expecter) HandleSubmittedGETForm ¶ added in v1.1.2
func (_e *FormHandler_Expecter) HandleSubmittedGETForm(ctx interface{}, req interface{}) *FormHandler_HandleSubmittedGETForm_Call
HandleSubmittedGETForm is a helper method to define mock.On call
- ctx context.Context
- req *web.Request
func (*FormHandler_Expecter) HandleUnsubmittedForm ¶ added in v1.1.2
func (_e *FormHandler_Expecter) HandleUnsubmittedForm(ctx interface{}, req interface{}) *FormHandler_HandleUnsubmittedForm_Call
HandleUnsubmittedForm is a helper method to define mock.On call
- ctx context.Context
- req *web.Request
type FormHandler_HandleForm_Call ¶ added in v1.1.2
FormHandler_HandleForm_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleForm'
func (*FormHandler_HandleForm_Call) Return ¶ added in v1.1.2
func (_c *FormHandler_HandleForm_Call) Return(_a0 *domain.Form, _a1 error) *FormHandler_HandleForm_Call
func (*FormHandler_HandleForm_Call) Run ¶ added in v1.1.2
func (_c *FormHandler_HandleForm_Call) Run(run func(ctx context.Context, req *web.Request)) *FormHandler_HandleForm_Call
func (*FormHandler_HandleForm_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FormHandler_HandleForm_Call) RunAndReturn(run func(context.Context, *web.Request) (*domain.Form, error)) *FormHandler_HandleForm_Call
type FormHandler_HandleSubmittedForm_Call ¶ added in v1.1.2
FormHandler_HandleSubmittedForm_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleSubmittedForm'
func (*FormHandler_HandleSubmittedForm_Call) Return ¶ added in v1.1.2
func (_c *FormHandler_HandleSubmittedForm_Call) Return(_a0 *domain.Form, _a1 error) *FormHandler_HandleSubmittedForm_Call
func (*FormHandler_HandleSubmittedForm_Call) Run ¶ added in v1.1.2
func (_c *FormHandler_HandleSubmittedForm_Call) Run(run func(ctx context.Context, req *web.Request)) *FormHandler_HandleSubmittedForm_Call
func (*FormHandler_HandleSubmittedForm_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FormHandler_HandleSubmittedForm_Call) RunAndReturn(run func(context.Context, *web.Request) (*domain.Form, error)) *FormHandler_HandleSubmittedForm_Call
type FormHandler_HandleSubmittedGETForm_Call ¶ added in v1.1.2
FormHandler_HandleSubmittedGETForm_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleSubmittedGETForm'
func (*FormHandler_HandleSubmittedGETForm_Call) Return ¶ added in v1.1.2
func (_c *FormHandler_HandleSubmittedGETForm_Call) Return(_a0 *domain.Form, _a1 error) *FormHandler_HandleSubmittedGETForm_Call
func (*FormHandler_HandleSubmittedGETForm_Call) Run ¶ added in v1.1.2
func (_c *FormHandler_HandleSubmittedGETForm_Call) Run(run func(ctx context.Context, req *web.Request)) *FormHandler_HandleSubmittedGETForm_Call
func (*FormHandler_HandleSubmittedGETForm_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FormHandler_HandleSubmittedGETForm_Call) RunAndReturn(run func(context.Context, *web.Request) (*domain.Form, error)) *FormHandler_HandleSubmittedGETForm_Call
type FormHandler_HandleUnsubmittedForm_Call ¶ added in v1.1.2
FormHandler_HandleUnsubmittedForm_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleUnsubmittedForm'
func (*FormHandler_HandleUnsubmittedForm_Call) Return ¶ added in v1.1.2
func (_c *FormHandler_HandleUnsubmittedForm_Call) Return(_a0 *domain.Form, _a1 error) *FormHandler_HandleUnsubmittedForm_Call
func (*FormHandler_HandleUnsubmittedForm_Call) Run ¶ added in v1.1.2
func (_c *FormHandler_HandleUnsubmittedForm_Call) Run(run func(ctx context.Context, req *web.Request)) *FormHandler_HandleUnsubmittedForm_Call
func (*FormHandler_HandleUnsubmittedForm_Call) RunAndReturn ¶ added in v1.1.2
func (_c *FormHandler_HandleUnsubmittedForm_Call) RunAndReturn(run func(context.Context, *web.Request) (*domain.Form, error)) *FormHandler_HandleUnsubmittedForm_Call
type FormService ¶
FormService is an autogenerated mock type for the FormService type
func NewFormService ¶ added in v1.1.2
func NewFormService(t interface { mock.TestingT Cleanup(func()) }) *FormService
NewFormService creates a new instance of FormService. 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 (*FormService) EXPECT ¶ added in v1.1.2
func (_m *FormService) EXPECT() *FormService_Expecter
type FormService_Expecter ¶ added in v1.1.2
type FormService_Expecter struct {
// contains filtered or unexported fields
}
type NamedFormInstance ¶
NamedFormInstance is an autogenerated mock type for the NamedFormInstance type
func (*NamedFormInstance) Name ¶
func (_m *NamedFormInstance) Name() string
Name provides a mock function with given fields:
type StructLevel ¶
StructLevel is an autogenerated mock type for the StructLevel type
func NewStructLevel ¶ added in v1.1.2
func NewStructLevel(t interface { mock.TestingT Cleanup(func()) }) *StructLevel
NewStructLevel creates a new instance of StructLevel. 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 (*StructLevel) Current ¶
func (_m *StructLevel) Current() reflect.Value
Current provides a mock function with given fields:
func (*StructLevel) EXPECT ¶ added in v1.1.2
func (_m *StructLevel) EXPECT() *StructLevel_Expecter
func (*StructLevel) ExtractType ¶
ExtractType provides a mock function with given fields: field
func (*StructLevel) Parent ¶
func (_m *StructLevel) Parent() reflect.Value
Parent provides a mock function with given fields:
func (*StructLevel) ReportError ¶
func (_m *StructLevel) ReportError(field interface{}, fieldName string, structFieldName string, tag string, param string)
ReportError provides a mock function with given fields: field, fieldName, structFieldName, tag, param
func (*StructLevel) ReportValidationErrors ¶
func (_m *StructLevel) ReportValidationErrors(relativeNamespace string, relativeActualNamespace string, errs validator.ValidationErrors)
ReportValidationErrors provides a mock function with given fields: relativeNamespace, relativeActualNamespace, errs
func (*StructLevel) Top ¶
func (_m *StructLevel) Top() reflect.Value
Top provides a mock function with given fields:
func (*StructLevel) Validator ¶
func (_m *StructLevel) Validator() *validator.Validate
Validator provides a mock function with given fields:
type StructLevel_Current_Call ¶ added in v1.1.2
StructLevel_Current_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Current'
func (*StructLevel_Current_Call) Return ¶ added in v1.1.2
func (_c *StructLevel_Current_Call) Return(_a0 reflect.Value) *StructLevel_Current_Call
func (*StructLevel_Current_Call) Run ¶ added in v1.1.2
func (_c *StructLevel_Current_Call) Run(run func()) *StructLevel_Current_Call
func (*StructLevel_Current_Call) RunAndReturn ¶ added in v1.1.2
func (_c *StructLevel_Current_Call) RunAndReturn(run func() reflect.Value) *StructLevel_Current_Call
type StructLevel_Expecter ¶ added in v1.1.2
type StructLevel_Expecter struct {
// contains filtered or unexported fields
}
func (*StructLevel_Expecter) Current ¶ added in v1.1.2
func (_e *StructLevel_Expecter) Current() *StructLevel_Current_Call
Current is a helper method to define mock.On call
func (*StructLevel_Expecter) ExtractType ¶ added in v1.1.2
func (_e *StructLevel_Expecter) ExtractType(field interface{}) *StructLevel_ExtractType_Call
ExtractType is a helper method to define mock.On call
- field reflect.Value
func (*StructLevel_Expecter) Parent ¶ added in v1.1.2
func (_e *StructLevel_Expecter) Parent() *StructLevel_Parent_Call
Parent is a helper method to define mock.On call
func (*StructLevel_Expecter) ReportError ¶ added in v1.1.2
func (_e *StructLevel_Expecter) ReportError(field interface{}, fieldName interface{}, structFieldName interface{}, tag interface{}, param interface{}) *StructLevel_ReportError_Call
ReportError is a helper method to define mock.On call
- field interface{}
- fieldName string
- structFieldName string
- tag string
- param string
func (*StructLevel_Expecter) ReportValidationErrors ¶ added in v1.1.2
func (_e *StructLevel_Expecter) ReportValidationErrors(relativeNamespace interface{}, relativeActualNamespace interface{}, errs interface{}) *StructLevel_ReportValidationErrors_Call
ReportValidationErrors is a helper method to define mock.On call
- relativeNamespace string
- relativeActualNamespace string
- errs validator.ValidationErrors
func (*StructLevel_Expecter) Top ¶ added in v1.1.2
func (_e *StructLevel_Expecter) Top() *StructLevel_Top_Call
Top is a helper method to define mock.On call
func (*StructLevel_Expecter) Validator ¶ added in v1.1.2
func (_e *StructLevel_Expecter) Validator() *StructLevel_Validator_Call
Validator is a helper method to define mock.On call
type StructLevel_ExtractType_Call ¶ added in v1.1.2
StructLevel_ExtractType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExtractType'
func (*StructLevel_ExtractType_Call) Return ¶ added in v1.1.2
func (_c *StructLevel_ExtractType_Call) Return(value reflect.Value, kind reflect.Kind, nullable bool) *StructLevel_ExtractType_Call
func (*StructLevel_ExtractType_Call) Run ¶ added in v1.1.2
func (_c *StructLevel_ExtractType_Call) Run(run func(field reflect.Value)) *StructLevel_ExtractType_Call
func (*StructLevel_ExtractType_Call) RunAndReturn ¶ added in v1.1.2
func (_c *StructLevel_ExtractType_Call) RunAndReturn(run func(reflect.Value) (reflect.Value, reflect.Kind, bool)) *StructLevel_ExtractType_Call
type StructLevel_Parent_Call ¶ added in v1.1.2
StructLevel_Parent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Parent'
func (*StructLevel_Parent_Call) Return ¶ added in v1.1.2
func (_c *StructLevel_Parent_Call) Return(_a0 reflect.Value) *StructLevel_Parent_Call
func (*StructLevel_Parent_Call) Run ¶ added in v1.1.2
func (_c *StructLevel_Parent_Call) Run(run func()) *StructLevel_Parent_Call
func (*StructLevel_Parent_Call) RunAndReturn ¶ added in v1.1.2
func (_c *StructLevel_Parent_Call) RunAndReturn(run func() reflect.Value) *StructLevel_Parent_Call
type StructLevel_ReportError_Call ¶ added in v1.1.2
StructLevel_ReportError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReportError'
func (*StructLevel_ReportError_Call) Return ¶ added in v1.1.2
func (_c *StructLevel_ReportError_Call) Return() *StructLevel_ReportError_Call
func (*StructLevel_ReportError_Call) Run ¶ added in v1.1.2
func (_c *StructLevel_ReportError_Call) Run(run func(field interface{}, fieldName string, structFieldName string, tag string, param string)) *StructLevel_ReportError_Call
func (*StructLevel_ReportError_Call) RunAndReturn ¶ added in v1.1.2
func (_c *StructLevel_ReportError_Call) RunAndReturn(run func(interface{}, string, string, string, string)) *StructLevel_ReportError_Call
type StructLevel_ReportValidationErrors_Call ¶ added in v1.1.2
StructLevel_ReportValidationErrors_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReportValidationErrors'
func (*StructLevel_ReportValidationErrors_Call) Return ¶ added in v1.1.2
func (_c *StructLevel_ReportValidationErrors_Call) Return() *StructLevel_ReportValidationErrors_Call
func (*StructLevel_ReportValidationErrors_Call) Run ¶ added in v1.1.2
func (_c *StructLevel_ReportValidationErrors_Call) Run(run func(relativeNamespace string, relativeActualNamespace string, errs validator.ValidationErrors)) *StructLevel_ReportValidationErrors_Call
func (*StructLevel_ReportValidationErrors_Call) RunAndReturn ¶ added in v1.1.2
func (_c *StructLevel_ReportValidationErrors_Call) RunAndReturn(run func(string, string, validator.ValidationErrors)) *StructLevel_ReportValidationErrors_Call
type StructLevel_Top_Call ¶ added in v1.1.2
StructLevel_Top_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Top'
func (*StructLevel_Top_Call) Return ¶ added in v1.1.2
func (_c *StructLevel_Top_Call) Return(_a0 reflect.Value) *StructLevel_Top_Call
func (*StructLevel_Top_Call) Run ¶ added in v1.1.2
func (_c *StructLevel_Top_Call) Run(run func()) *StructLevel_Top_Call
func (*StructLevel_Top_Call) RunAndReturn ¶ added in v1.1.2
func (_c *StructLevel_Top_Call) RunAndReturn(run func() reflect.Value) *StructLevel_Top_Call
type StructLevel_Validator_Call ¶ added in v1.1.2
StructLevel_Validator_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Validator'
func (*StructLevel_Validator_Call) Return ¶ added in v1.1.2
func (_c *StructLevel_Validator_Call) Return(_a0 *validator.Validate) *StructLevel_Validator_Call
func (*StructLevel_Validator_Call) Run ¶ added in v1.1.2
func (_c *StructLevel_Validator_Call) Run(run func()) *StructLevel_Validator_Call
func (*StructLevel_Validator_Call) RunAndReturn ¶ added in v1.1.2
func (_c *StructLevel_Validator_Call) RunAndReturn(run func() *validator.Validate) *StructLevel_Validator_Call
type StructValidator ¶
StructValidator is an autogenerated mock type for the StructValidator type
func NewStructValidator ¶ added in v1.1.2
func NewStructValidator(t interface { mock.TestingT Cleanup(func()) }) *StructValidator
NewStructValidator creates a new instance of StructValidator. 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 (*StructValidator) EXPECT ¶ added in v1.1.2
func (_m *StructValidator) EXPECT() *StructValidator_Expecter
func (*StructValidator) StructType ¶
func (_m *StructValidator) StructType() interface{}
StructType provides a mock function with given fields:
func (*StructValidator) ValidateStruct ¶
func (_m *StructValidator) ValidateStruct(ctx context.Context, sl validator.StructLevel)
ValidateStruct provides a mock function with given fields: ctx, sl
type StructValidator_Expecter ¶ added in v1.1.2
type StructValidator_Expecter struct {
// contains filtered or unexported fields
}
func (*StructValidator_Expecter) StructType ¶ added in v1.1.2
func (_e *StructValidator_Expecter) StructType() *StructValidator_StructType_Call
StructType is a helper method to define mock.On call
func (*StructValidator_Expecter) ValidateStruct ¶ added in v1.1.2
func (_e *StructValidator_Expecter) ValidateStruct(ctx interface{}, sl interface{}) *StructValidator_ValidateStruct_Call
ValidateStruct is a helper method to define mock.On call
- ctx context.Context
- sl validator.StructLevel
type StructValidator_StructType_Call ¶ added in v1.1.2
StructValidator_StructType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StructType'
func (*StructValidator_StructType_Call) Return ¶ added in v1.1.2
func (_c *StructValidator_StructType_Call) Return(_a0 interface{}) *StructValidator_StructType_Call
func (*StructValidator_StructType_Call) Run ¶ added in v1.1.2
func (_c *StructValidator_StructType_Call) Run(run func()) *StructValidator_StructType_Call
func (*StructValidator_StructType_Call) RunAndReturn ¶ added in v1.1.2
func (_c *StructValidator_StructType_Call) RunAndReturn(run func() interface{}) *StructValidator_StructType_Call
type StructValidator_ValidateStruct_Call ¶ added in v1.1.2
StructValidator_ValidateStruct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateStruct'
func (*StructValidator_ValidateStruct_Call) Return ¶ added in v1.1.2
func (_c *StructValidator_ValidateStruct_Call) Return() *StructValidator_ValidateStruct_Call
func (*StructValidator_ValidateStruct_Call) Run ¶ added in v1.1.2
func (_c *StructValidator_ValidateStruct_Call) Run(run func(ctx context.Context, sl validator.StructLevel)) *StructValidator_ValidateStruct_Call
func (*StructValidator_ValidateStruct_Call) RunAndReturn ¶ added in v1.1.2
func (_c *StructValidator_ValidateStruct_Call) RunAndReturn(run func(context.Context, validator.StructLevel)) *StructValidator_ValidateStruct_Call
type ValidatorProvider ¶
ValidatorProvider is an autogenerated mock type for the ValidatorProvider type
func NewValidatorProvider ¶ added in v1.1.2
func NewValidatorProvider(t interface { mock.TestingT Cleanup(func()) }) *ValidatorProvider
NewValidatorProvider creates a new instance of ValidatorProvider. 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 (*ValidatorProvider) EXPECT ¶ added in v1.1.2
func (_m *ValidatorProvider) EXPECT() *ValidatorProvider_Expecter
func (*ValidatorProvider) ErrorsToValidationInfo ¶
func (_m *ValidatorProvider) ErrorsToValidationInfo(err error) domain.ValidationInfo
ErrorsToValidationInfo provides a mock function with given fields: err
func (*ValidatorProvider) GetValidator ¶
func (_m *ValidatorProvider) GetValidator() *validator.Validate
GetValidator provides a mock function with given fields:
func (*ValidatorProvider) Validate ¶
func (_m *ValidatorProvider) Validate(ctx context.Context, req *web.Request, value interface{}) domain.ValidationInfo
Validate provides a mock function with given fields: ctx, req, value
type ValidatorProvider_ErrorsToValidationInfo_Call ¶ added in v1.1.2
ValidatorProvider_ErrorsToValidationInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ErrorsToValidationInfo'
func (*ValidatorProvider_ErrorsToValidationInfo_Call) Run ¶ added in v1.1.2
func (_c *ValidatorProvider_ErrorsToValidationInfo_Call) Run(run func(err error)) *ValidatorProvider_ErrorsToValidationInfo_Call
func (*ValidatorProvider_ErrorsToValidationInfo_Call) RunAndReturn ¶ added in v1.1.2
func (_c *ValidatorProvider_ErrorsToValidationInfo_Call) RunAndReturn(run func(error) domain.ValidationInfo) *ValidatorProvider_ErrorsToValidationInfo_Call
type ValidatorProvider_Expecter ¶ added in v1.1.2
type ValidatorProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*ValidatorProvider_Expecter) ErrorsToValidationInfo ¶ added in v1.1.2
func (_e *ValidatorProvider_Expecter) ErrorsToValidationInfo(err interface{}) *ValidatorProvider_ErrorsToValidationInfo_Call
ErrorsToValidationInfo is a helper method to define mock.On call
- err error
func (*ValidatorProvider_Expecter) GetValidator ¶ added in v1.1.2
func (_e *ValidatorProvider_Expecter) GetValidator() *ValidatorProvider_GetValidator_Call
GetValidator is a helper method to define mock.On call
func (*ValidatorProvider_Expecter) Validate ¶ added in v1.1.2
func (_e *ValidatorProvider_Expecter) Validate(ctx interface{}, req interface{}, value interface{}) *ValidatorProvider_Validate_Call
Validate is a helper method to define mock.On call
- ctx context.Context
- req *web.Request
- value interface{}
type ValidatorProvider_GetValidator_Call ¶ added in v1.1.2
ValidatorProvider_GetValidator_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetValidator'
func (*ValidatorProvider_GetValidator_Call) Return ¶ added in v1.1.2
func (_c *ValidatorProvider_GetValidator_Call) Return(_a0 *validator.Validate) *ValidatorProvider_GetValidator_Call
func (*ValidatorProvider_GetValidator_Call) Run ¶ added in v1.1.2
func (_c *ValidatorProvider_GetValidator_Call) Run(run func()) *ValidatorProvider_GetValidator_Call
func (*ValidatorProvider_GetValidator_Call) RunAndReturn ¶ added in v1.1.2
func (_c *ValidatorProvider_GetValidator_Call) RunAndReturn(run func() *validator.Validate) *ValidatorProvider_GetValidator_Call
type ValidatorProvider_Validate_Call ¶ added in v1.1.2
ValidatorProvider_Validate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Validate'
func (*ValidatorProvider_Validate_Call) Return ¶ added in v1.1.2
func (_c *ValidatorProvider_Validate_Call) Return(_a0 domain.ValidationInfo) *ValidatorProvider_Validate_Call
func (*ValidatorProvider_Validate_Call) Run ¶ added in v1.1.2
func (_c *ValidatorProvider_Validate_Call) Run(run func(ctx context.Context, req *web.Request, value interface{})) *ValidatorProvider_Validate_Call
func (*ValidatorProvider_Validate_Call) RunAndReturn ¶ added in v1.1.2
func (_c *ValidatorProvider_Validate_Call) RunAndReturn(run func(context.Context, *web.Request, interface{}) domain.ValidationInfo) *ValidatorProvider_Validate_Call
Source Files ¶
- complete_form_service.go
- default_form_data_decoder.go
- default_form_data_encoder.go
- default_form_data_provider.go
- default_form_data_validator.go
- field_error.go
- field_level.go
- field_validator.go
- form_data_decoder.go
- form_data_encoder.go
- form_data_provider.go
- form_data_validator.go
- form_extension.go
- form_handler.go
- form_service.go
- named_form_instance.go
- struct_level.go
- struct_validator.go
- validator_provider.go