mocks

package
v0.0.0-...-fd23dd1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: OSL-3.0 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 (*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) 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 DefaultFormDataDecoder

type DefaultFormDataDecoder struct {
	mock.Mock
}

DefaultFormDataDecoder is an autogenerated mock type for the DefaultFormDataDecoder type

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

type DefaultFormDataProvider

type DefaultFormDataProvider struct {
	mock.Mock
}

DefaultFormDataProvider is an autogenerated mock type for the DefaultFormDataProvider type

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 DefaultFormDataValidator

type DefaultFormDataValidator struct {
	mock.Mock
}

DefaultFormDataValidator is an autogenerated mock type for the DefaultFormDataValidator type

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 FieldError

type FieldError struct {
	mock.Mock
}

FieldError is an autogenerated mock type for the FieldError type

func (*FieldError) ActualTag

func (_m *FieldError) ActualTag() string

ActualTag 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 FieldLevel

type FieldLevel struct {
	mock.Mock
}

FieldLevel is an autogenerated mock type for the FieldLevel type

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) 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 FieldValidator

type FieldValidator struct {
	mock.Mock
}

FieldValidator is an autogenerated mock type for the FieldValidator type

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 FormDataDecoder

type FormDataDecoder struct {
	mock.Mock
}

FormDataDecoder is an autogenerated mock type for the FormDataDecoder type

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

type FormDataProvider

type FormDataProvider struct {
	mock.Mock
}

FormDataProvider is an autogenerated mock type for the FormDataProvider type

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 FormDataValidator

type FormDataValidator struct {
	mock.Mock
}

FormDataValidator is an autogenerated mock type for the FormDataValidator type

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 FormExtension

type FormExtension struct {
	mock.Mock
}

FormExtension is an autogenerated mock type for the FormExtension type

type FormHandler

type FormHandler struct {
	mock.Mock
}

FormHandler is an autogenerated mock type for the FormHandler type

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 FormService

type FormService struct {
	mock.Mock
}

FormService is an autogenerated mock type for the FormService type

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 (*StructLevel) Current

func (_m *StructLevel) Current() reflect.Value

Current provides a mock function with given fields:

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 StructValidator

type StructValidator struct {
	mock.Mock
}

StructValidator is an autogenerated mock type for the StructValidator type

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 ValidatorProvider

type ValidatorProvider struct {
	mock.Mock
}

ValidatorProvider is an autogenerated mock type for the ValidatorProvider type

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

Jump to

Keyboard shortcuts

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