mocks

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompleteFormService

type CompleteFormService struct {
	mock.Mock
}

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 (*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

type CompleteFormService_Decode_Call struct {
	*mock.Call
}

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

type CompleteFormService_GetFormData_Call struct {
	*mock.Call
}

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 (*CompleteFormService_GetFormData_Call) Run added in v1.1.2

func (*CompleteFormService_GetFormData_Call) RunAndReturn added in v1.1.2

type CompleteFormService_Validate_Call added in v1.1.2

type CompleteFormService_Validate_Call struct {
	*mock.Call
}

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 (*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

type DefaultFormDataDecoder

type DefaultFormDataDecoder struct {
	mock.Mock
}

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

type DefaultFormDataDecoder_Decode_Call added in v1.1.2

type DefaultFormDataDecoder_Decode_Call struct {
	*mock.Call
}

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 (*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

type DefaultFormDataEncoder struct {
	mock.Mock
}

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 (*DefaultFormDataEncoder) Encode added in v1.1.1

func (_m *DefaultFormDataEncoder) Encode(ctx context.Context, formData interface{}) (url.Values, error)

Encode provides a mock function with given fields: ctx, formData

type DefaultFormDataEncoder_Encode_Call added in v1.1.2

type DefaultFormDataEncoder_Encode_Call struct {
	*mock.Call
}

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 (*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

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

type DefaultFormDataProvider struct {
	mock.Mock
}

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 (*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

type DefaultFormDataProvider_GetFormData_Call struct {
	*mock.Call
}

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 (*DefaultFormDataProvider_GetFormData_Call) Run added in v1.1.2

func (*DefaultFormDataProvider_GetFormData_Call) RunAndReturn added in v1.1.2

type DefaultFormDataValidator

type DefaultFormDataValidator struct {
	mock.Mock
}

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 (*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

type DefaultFormDataValidator_Validate_Call struct {
	*mock.Call
}

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 (*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

type FieldError

type FieldError struct {
	mock.Mock
}

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

type FieldError_ActualTag_Call struct {
	*mock.Call
}

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 (*FieldError_ActualTag_Call) Run added in v1.1.2

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

type FieldError_Error_Call struct {
	*mock.Call
}

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 (*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

ActualTag is a helper method to define mock.On call

func (*FieldError_Expecter) Error added in v1.1.2

Error is a helper method to define mock.On call

func (*FieldError_Expecter) Field added in v1.1.2

Field is a helper method to define mock.On call

func (*FieldError_Expecter) Kind added in v1.1.2

Kind is a helper method to define mock.On call

func (*FieldError_Expecter) Namespace added in v1.1.2

Namespace is a helper method to define mock.On call

func (*FieldError_Expecter) Param added in v1.1.2

Param is a helper method to define mock.On call

func (*FieldError_Expecter) StructField added in v1.1.2

StructField is a helper method to define mock.On call

func (*FieldError_Expecter) StructNamespace added in v1.1.2

StructNamespace is a helper method to define mock.On call

func (*FieldError_Expecter) Tag added in v1.1.2

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

Type is a helper method to define mock.On call

func (*FieldError_Expecter) Value added in v1.1.2

Value is a helper method to define mock.On call

type FieldError_Field_Call added in v1.1.2

type FieldError_Field_Call struct {
	*mock.Call
}

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 (*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

type FieldError_Kind_Call struct {
	*mock.Call
}

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 (*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

type FieldError_Namespace_Call struct {
	*mock.Call
}

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 (*FieldError_Namespace_Call) Run added in v1.1.2

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

type FieldError_Param_Call struct {
	*mock.Call
}

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 (*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

type FieldError_StructField_Call struct {
	*mock.Call
}

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 (*FieldError_StructField_Call) Run added in v1.1.2

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

type FieldError_StructNamespace_Call struct {
	*mock.Call
}

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 (*FieldError_StructNamespace_Call) Run added in v1.1.2

func (*FieldError_StructNamespace_Call) RunAndReturn added in v1.1.2

type FieldError_Tag_Call added in v1.1.2

type FieldError_Tag_Call struct {
	*mock.Call
}

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 (*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

type FieldError_Translate_Call struct {
	*mock.Call
}

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 (*FieldError_Translate_Call) Run added in v1.1.2

func (*FieldError_Translate_Call) RunAndReturn added in v1.1.2

type FieldError_Type_Call added in v1.1.2

type FieldError_Type_Call struct {
	*mock.Call
}

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 (*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

type FieldError_Value_Call struct {
	*mock.Call
}

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

type FieldLevel struct {
	mock.Mock
}

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

func (_m *FieldLevel) ExtractType(field reflect.Value) (reflect.Value, reflect.Kind, bool)

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

func (_m *FieldLevel) GetStructFieldOK() (reflect.Value, reflect.Kind, bool)

GetStructFieldOK provides a mock function with given fields:

func (*FieldLevel) GetStructFieldOK2 added in v1.1.1

func (_m *FieldLevel) GetStructFieldOK2() (reflect.Value, reflect.Kind, bool, bool)

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

Field is a helper method to define mock.On call

func (*FieldLevel_Expecter) FieldName added in v1.1.2

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

GetTag is a helper method to define mock.On call

func (*FieldLevel_Expecter) Param added in v1.1.2

Param is a helper method to define mock.On call

func (*FieldLevel_Expecter) Parent added in v1.1.2

Parent is a helper method to define mock.On call

func (*FieldLevel_Expecter) StructFieldName added in v1.1.2

StructFieldName is a helper method to define mock.On call

func (*FieldLevel_Expecter) Top added in v1.1.2

Top is a helper method to define mock.On call

type FieldLevel_ExtractType_Call added in v1.1.2

type FieldLevel_ExtractType_Call struct {
	*mock.Call
}

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 (*FieldLevel_ExtractType_Call) Run added in v1.1.2

func (*FieldLevel_ExtractType_Call) RunAndReturn added in v1.1.2

type FieldLevel_FieldName_Call added in v1.1.2

type FieldLevel_FieldName_Call struct {
	*mock.Call
}

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 (*FieldLevel_FieldName_Call) Run added in v1.1.2

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

type FieldLevel_Field_Call struct {
	*mock.Call
}

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 (*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

type FieldLevel_GetStructFieldOK2_Call struct {
	*mock.Call
}

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 (*FieldLevel_GetStructFieldOK2_Call) Run added in v1.1.2

func (*FieldLevel_GetStructFieldOK2_Call) RunAndReturn added in v1.1.2

type FieldLevel_GetStructFieldOKAdvanced2_Call added in v1.1.2

type FieldLevel_GetStructFieldOKAdvanced2_Call struct {
	*mock.Call
}

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 (*FieldLevel_GetStructFieldOKAdvanced2_Call) Run added in v1.1.2

func (*FieldLevel_GetStructFieldOKAdvanced2_Call) RunAndReturn added in v1.1.2

type FieldLevel_GetStructFieldOKAdvanced_Call added in v1.1.2

type FieldLevel_GetStructFieldOKAdvanced_Call struct {
	*mock.Call
}

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 (*FieldLevel_GetStructFieldOKAdvanced_Call) Run added in v1.1.2

func (*FieldLevel_GetStructFieldOKAdvanced_Call) RunAndReturn added in v1.1.2

type FieldLevel_GetStructFieldOK_Call added in v1.1.2

type FieldLevel_GetStructFieldOK_Call struct {
	*mock.Call
}

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 (*FieldLevel_GetStructFieldOK_Call) Run added in v1.1.2

func (*FieldLevel_GetStructFieldOK_Call) RunAndReturn added in v1.1.2

type FieldLevel_GetTag_Call added in v1.1.2

type FieldLevel_GetTag_Call struct {
	*mock.Call
}

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 (*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

type FieldLevel_Param_Call struct {
	*mock.Call
}

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 (*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

type FieldLevel_Parent_Call struct {
	*mock.Call
}

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 (*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

type FieldLevel_StructFieldName_Call struct {
	*mock.Call
}

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 (*FieldLevel_StructFieldName_Call) Run added in v1.1.2

func (*FieldLevel_StructFieldName_Call) RunAndReturn added in v1.1.2

type FieldLevel_Top_Call added in v1.1.2

type FieldLevel_Top_Call struct {
	*mock.Call
}

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 (*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

type FieldValidator struct {
	mock.Mock
}

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 (*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

ValidatorName is a helper method to define mock.On call

type FieldValidator_ValidateField_Call added in v1.1.2

type FieldValidator_ValidateField_Call struct {
	*mock.Call
}

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 (*FieldValidator_ValidateField_Call) Run added in v1.1.2

func (*FieldValidator_ValidateField_Call) RunAndReturn added in v1.1.2

type FieldValidator_ValidatorName_Call added in v1.1.2

type FieldValidator_ValidatorName_Call struct {
	*mock.Call
}

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 (*FieldValidator_ValidatorName_Call) Run added in v1.1.2

func (*FieldValidator_ValidatorName_Call) RunAndReturn added in v1.1.2

type FormDataDecoder

type FormDataDecoder struct {
	mock.Mock
}

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

type FormDataDecoder_Decode_Call added in v1.1.2

type FormDataDecoder_Decode_Call struct {
	*mock.Call
}

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

type FormDataEncoder struct {
	mock.Mock
}

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 (*FormDataEncoder) Encode added in v1.1.1

func (_m *FormDataEncoder) Encode(ctx context.Context, formData interface{}) (url.Values, error)

Encode provides a mock function with given fields: ctx, formData

type FormDataEncoder_Encode_Call added in v1.1.2

type FormDataEncoder_Encode_Call struct {
	*mock.Call
}

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 (*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

type FormDataProvider struct {
	mock.Mock
}

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 (*FormDataProvider) GetFormData

func (_m *FormDataProvider) GetFormData(ctx context.Context, req *web.Request) (interface{}, error)

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

type FormDataProvider_GetFormData_Call struct {
	*mock.Call
}

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 (*FormDataProvider_GetFormData_Call) Run added in v1.1.2

func (*FormDataProvider_GetFormData_Call) RunAndReturn added in v1.1.2

type FormDataValidator

type FormDataValidator struct {
	mock.Mock
}

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 (*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

type FormDataValidator_Validate_Call struct {
	*mock.Call
}

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 (*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

type FormExtension

type FormExtension struct {
	mock.Mock
}

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

type FormHandler struct {
	mock.Mock
}

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

func (_m *FormHandler) HandleForm(ctx context.Context, req *web.Request) (*domain.Form, error)

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

type FormHandler_HandleForm_Call struct {
	*mock.Call
}

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 (*FormHandler_HandleForm_Call) Run added in v1.1.2

func (*FormHandler_HandleForm_Call) RunAndReturn added in v1.1.2

type FormHandler_HandleSubmittedForm_Call added in v1.1.2

type FormHandler_HandleSubmittedForm_Call struct {
	*mock.Call
}

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 (*FormHandler_HandleSubmittedForm_Call) Run added in v1.1.2

func (*FormHandler_HandleSubmittedForm_Call) RunAndReturn added in v1.1.2

type FormHandler_HandleSubmittedGETForm_Call added in v1.1.2

type FormHandler_HandleSubmittedGETForm_Call struct {
	*mock.Call
}

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 (*FormHandler_HandleSubmittedGETForm_Call) Run added in v1.1.2

func (*FormHandler_HandleSubmittedGETForm_Call) RunAndReturn added in v1.1.2

type FormHandler_HandleUnsubmittedForm_Call added in v1.1.2

type FormHandler_HandleUnsubmittedForm_Call struct {
	*mock.Call
}

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 (*FormHandler_HandleUnsubmittedForm_Call) Run added in v1.1.2

func (*FormHandler_HandleUnsubmittedForm_Call) RunAndReturn added in v1.1.2

type FormService

type FormService struct {
	mock.Mock
}

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

type NamedFormInstance struct {
	mock.Mock
}

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

type StructLevel struct {
	mock.Mock
}

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

func (_m *StructLevel) ExtractType(field reflect.Value) (reflect.Value, reflect.Kind, bool)

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

type StructLevel_Current_Call struct {
	*mock.Call
}

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 (*StructLevel_Current_Call) Run added in v1.1.2

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

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

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

Top is a helper method to define mock.On call

func (*StructLevel_Expecter) Validator added in v1.1.2

Validator is a helper method to define mock.On call

type StructLevel_ExtractType_Call added in v1.1.2

type StructLevel_ExtractType_Call struct {
	*mock.Call
}

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 (*StructLevel_ExtractType_Call) Run added in v1.1.2

func (*StructLevel_ExtractType_Call) RunAndReturn added in v1.1.2

type StructLevel_Parent_Call added in v1.1.2

type StructLevel_Parent_Call struct {
	*mock.Call
}

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 (*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

type StructLevel_ReportError_Call struct {
	*mock.Call
}

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 (*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

type StructLevel_ReportValidationErrors_Call struct {
	*mock.Call
}

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 (*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

type StructLevel_Top_Call added in v1.1.2

type StructLevel_Top_Call struct {
	*mock.Call
}

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 (*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

type StructLevel_Validator_Call struct {
	*mock.Call
}

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 (*StructLevel_Validator_Call) Run added in v1.1.2

func (*StructLevel_Validator_Call) RunAndReturn added in v1.1.2

type StructValidator

type StructValidator struct {
	mock.Mock
}

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 (*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

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

type StructValidator_StructType_Call struct {
	*mock.Call
}

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 (*StructValidator_StructType_Call) Run added in v1.1.2

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

type StructValidator_ValidateStruct_Call struct {
	*mock.Call
}

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 (*StructValidator_ValidateStruct_Call) Run added in v1.1.2

func (*StructValidator_ValidateStruct_Call) RunAndReturn added in v1.1.2

type ValidatorProvider

type ValidatorProvider struct {
	mock.Mock
}

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 (*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

type ValidatorProvider_ErrorsToValidationInfo_Call struct {
	*mock.Call
}

ValidatorProvider_ErrorsToValidationInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ErrorsToValidationInfo'

func (*ValidatorProvider_ErrorsToValidationInfo_Call) Return added in v1.1.2

func (*ValidatorProvider_ErrorsToValidationInfo_Call) Run added in v1.1.2

func (*ValidatorProvider_ErrorsToValidationInfo_Call) RunAndReturn added in v1.1.2

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

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

type ValidatorProvider_GetValidator_Call struct {
	*mock.Call
}

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 (*ValidatorProvider_GetValidator_Call) Run added in v1.1.2

func (*ValidatorProvider_GetValidator_Call) RunAndReturn added in v1.1.2

type ValidatorProvider_Validate_Call added in v1.1.2

type ValidatorProvider_Validate_Call struct {
	*mock.Call
}

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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL