mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Errors

type Errors struct {
	mock.Mock
}

Errors is an autogenerated mock type for the Errors type

func NewErrors

func NewErrors(t mockConstructorTestingTNewErrors) *Errors

NewErrors creates a new instance of Errors. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Errors) All

func (_m *Errors) All() map[string]map[string]string

All provides a mock function with given fields:

func (*Errors) Get

func (_m *Errors) Get(key string) map[string]string

Get provides a mock function with given fields: key

func (*Errors) Has

func (_m *Errors) Has(key string) bool

Has provides a mock function with given fields: key

func (*Errors) One

func (_m *Errors) One(key ...string) string

One provides a mock function with given fields: key

type Validation

type Validation struct {
	mock.Mock
}

Validation is an autogenerated mock type for the Validation type

func NewValidation

func NewValidation(t mockConstructorTestingTNewValidation) *Validation

NewValidation creates a new instance of Validation. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Validation) AddRules

func (_m *Validation) AddRules(_a0 []validation.Rule) error

AddRules provides a mock function with given fields: _a0

func (*Validation) Make

func (_m *Validation) Make(data interface{}, rules map[string]string, options ...validation.Option) (validation.Validator, error)

Make provides a mock function with given fields: data, rules, options

func (*Validation) Rules

func (_m *Validation) Rules() []validation.Rule

Rules provides a mock function with given fields:

type Validator

type Validator struct {
	mock.Mock
}

Validator is an autogenerated mock type for the Validator type

func NewValidator

func NewValidator(t mockConstructorTestingTNewValidator) *Validator

NewValidator creates a new instance of Validator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Validator) Bind

func (_m *Validator) Bind(ptr interface{}) error

Bind provides a mock function with given fields: ptr

func (*Validator) Errors

func (_m *Validator) Errors() validation.Errors

Errors provides a mock function with given fields:

func (*Validator) Fails

func (_m *Validator) Fails() bool

Fails provides a mock function with given fields:

Jump to

Keyboard shortcuts

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