validation

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func NewManager

func NewManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *Manager

NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Manager) EXPECT

func (_m *Manager) EXPECT() *Manager_Expecter

func (*Manager) Engine

func (_m *Manager) Engine() interface{}

Engine provides a mock function with given fields:

func (*Manager) MustInit

func (_m *Manager) MustInit() validation.Manager

MustInit provides a mock function with given fields:

func (*Manager) RegisterRegexValidator

func (_m *Manager) RegisterRegexValidator(tag string, r *regexp.Regexp) validation.Manager

RegisterRegexValidator provides a mock function with given fields: tag, r

func (*Manager) Validate

func (_m *Manager) Validate(i interface{}) error

Validate provides a mock function with given fields: i

func (*Manager) ValidateStruct

func (_m *Manager) ValidateStruct(i interface{}) error

ValidateStruct provides a mock function with given fields: i

type Manager_Engine_Call

type Manager_Engine_Call struct {
	*mock.Call
}

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

func (*Manager_Engine_Call) Return

func (_c *Manager_Engine_Call) Return(_a0 interface{}) *Manager_Engine_Call

func (*Manager_Engine_Call) Run

func (_c *Manager_Engine_Call) Run(run func()) *Manager_Engine_Call

func (*Manager_Engine_Call) RunAndReturn

func (_c *Manager_Engine_Call) RunAndReturn(run func() interface{}) *Manager_Engine_Call

type Manager_Expecter

type Manager_Expecter struct {
	// contains filtered or unexported fields
}

func (*Manager_Expecter) Engine

func (_e *Manager_Expecter) Engine() *Manager_Engine_Call

Engine is a helper method to define mock.On call

func (*Manager_Expecter) MustInit

func (_e *Manager_Expecter) MustInit() *Manager_MustInit_Call

MustInit is a helper method to define mock.On call

func (*Manager_Expecter) RegisterRegexValidator

func (_e *Manager_Expecter) RegisterRegexValidator(tag interface{}, r interface{}) *Manager_RegisterRegexValidator_Call

RegisterRegexValidator is a helper method to define mock.On call

  • tag string
  • r *regexp.Regexp

func (*Manager_Expecter) Validate

func (_e *Manager_Expecter) Validate(i interface{}) *Manager_Validate_Call

Validate is a helper method to define mock.On call

  • i interface{}

func (*Manager_Expecter) ValidateStruct

func (_e *Manager_Expecter) ValidateStruct(i interface{}) *Manager_ValidateStruct_Call

ValidateStruct is a helper method to define mock.On call

  • i interface{}

type Manager_MustInit_Call

type Manager_MustInit_Call struct {
	*mock.Call
}

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

func (*Manager_MustInit_Call) Return

func (*Manager_MustInit_Call) Run

func (_c *Manager_MustInit_Call) Run(run func()) *Manager_MustInit_Call

func (*Manager_MustInit_Call) RunAndReturn

func (_c *Manager_MustInit_Call) RunAndReturn(run func() validation.Manager) *Manager_MustInit_Call

type Manager_RegisterRegexValidator_Call

type Manager_RegisterRegexValidator_Call struct {
	*mock.Call
}

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

func (*Manager_RegisterRegexValidator_Call) Return

func (*Manager_RegisterRegexValidator_Call) Run

func (*Manager_RegisterRegexValidator_Call) RunAndReturn

type Manager_ValidateStruct_Call

type Manager_ValidateStruct_Call struct {
	*mock.Call
}

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

func (*Manager_ValidateStruct_Call) Return

func (*Manager_ValidateStruct_Call) Run

func (_c *Manager_ValidateStruct_Call) Run(run func(i interface{})) *Manager_ValidateStruct_Call

func (*Manager_ValidateStruct_Call) RunAndReturn

func (_c *Manager_ValidateStruct_Call) RunAndReturn(run func(interface{}) error) *Manager_ValidateStruct_Call

type Manager_Validate_Call

type Manager_Validate_Call struct {
	*mock.Call
}

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

func (*Manager_Validate_Call) Return

func (*Manager_Validate_Call) Run

func (_c *Manager_Validate_Call) Run(run func(i interface{})) *Manager_Validate_Call

func (*Manager_Validate_Call) RunAndReturn

func (_c *Manager_Validate_Call) RunAndReturn(run func(interface{}) error) *Manager_Validate_Call

Jump to

Keyboard shortcuts

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