validatormocks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 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 MockRegistry

type MockRegistry struct {
	mock.Mock
}

MockRegistry is an autogenerated mock type for the Registry type

func NewMockRegistry

func NewMockRegistry(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRegistry

NewMockRegistry creates a new instance of MockRegistry. 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 (*MockRegistry) EXPECT

func (_m *MockRegistry) EXPECT() *MockRegistry_Expecter

func (*MockRegistry) Parse

func (_mock *MockRegistry) Parse(s string, s1 string) ([]options.SchemaOption, error)

Parse provides a mock function for the type MockRegistry

func (*MockRegistry) Register

func (_mock *MockRegistry) Register(tag validator.ValidatorTag)

Register provides a mock function for the type MockRegistry

func (*MockRegistry) Validators

func (_mock *MockRegistry) Validators() []validator.ValidatorTag

Validators provides a mock function for the type MockRegistry

type MockRegistry_Expecter

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

func (*MockRegistry_Expecter) Parse

func (_e *MockRegistry_Expecter) Parse(s interface{}, s1 interface{}) *MockRegistry_Parse_Call

Parse is a helper method to define mock.On call

  • s string
  • s1 string

func (*MockRegistry_Expecter) Register

func (_e *MockRegistry_Expecter) Register(tag interface{}) *MockRegistry_Register_Call

Register is a helper method to define mock.On call

  • tag validator.ValidatorTag

func (*MockRegistry_Expecter) Validators

Validators is a helper method to define mock.On call

type MockRegistry_Parse_Call

type MockRegistry_Parse_Call struct {
	*mock.Call
}

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

func (*MockRegistry_Parse_Call) Return

func (_c *MockRegistry_Parse_Call) Return(schemaOptions []options.SchemaOption, err error) *MockRegistry_Parse_Call

func (*MockRegistry_Parse_Call) Run

func (*MockRegistry_Parse_Call) RunAndReturn

func (_c *MockRegistry_Parse_Call) RunAndReturn(run func(s string, s1 string) ([]options.SchemaOption, error)) *MockRegistry_Parse_Call

type MockRegistry_Register_Call

type MockRegistry_Register_Call struct {
	*mock.Call
}

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

func (*MockRegistry_Register_Call) Return

func (*MockRegistry_Register_Call) Run

func (*MockRegistry_Register_Call) RunAndReturn

type MockRegistry_Validators_Call

type MockRegistry_Validators_Call struct {
	*mock.Call
}

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

func (*MockRegistry_Validators_Call) Return

func (*MockRegistry_Validators_Call) Run

func (*MockRegistry_Validators_Call) RunAndReturn

type MockValidatorTag

type MockValidatorTag struct {
	mock.Mock
}

MockValidatorTag is an autogenerated mock type for the ValidatorTag type

func NewMockValidatorTag

func NewMockValidatorTag(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockValidatorTag

NewMockValidatorTag creates a new instance of MockValidatorTag. 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 (*MockValidatorTag) EXPECT

func (*MockValidatorTag) Parse

func (_mock *MockValidatorTag) Parse(s string, s1 string) ([]options.SchemaOption, error)

Parse provides a mock function for the type MockValidatorTag

func (*MockValidatorTag) Tag

func (_mock *MockValidatorTag) Tag() string

Tag provides a mock function for the type MockValidatorTag

func (*MockValidatorTag) Usage

func (_mock *MockValidatorTag) Usage() string

Usage provides a mock function for the type MockValidatorTag

type MockValidatorTag_Expecter

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

func (*MockValidatorTag_Expecter) Parse

func (_e *MockValidatorTag_Expecter) Parse(s interface{}, s1 interface{}) *MockValidatorTag_Parse_Call

Parse is a helper method to define mock.On call

  • s string
  • s1 string

func (*MockValidatorTag_Expecter) Tag

Tag is a helper method to define mock.On call

func (*MockValidatorTag_Expecter) Usage

Usage is a helper method to define mock.On call

type MockValidatorTag_Parse_Call

type MockValidatorTag_Parse_Call struct {
	*mock.Call
}

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

func (*MockValidatorTag_Parse_Call) Return

func (*MockValidatorTag_Parse_Call) Run

func (*MockValidatorTag_Parse_Call) RunAndReturn

type MockValidatorTag_Tag_Call

type MockValidatorTag_Tag_Call struct {
	*mock.Call
}

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

func (*MockValidatorTag_Tag_Call) Return

func (*MockValidatorTag_Tag_Call) Run

func (*MockValidatorTag_Tag_Call) RunAndReturn

func (_c *MockValidatorTag_Tag_Call) RunAndReturn(run func() string) *MockValidatorTag_Tag_Call

type MockValidatorTag_Usage_Call

type MockValidatorTag_Usage_Call struct {
	*mock.Call
}

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

func (*MockValidatorTag_Usage_Call) Return

func (*MockValidatorTag_Usage_Call) Run

func (*MockValidatorTag_Usage_Call) RunAndReturn

func (_c *MockValidatorTag_Usage_Call) RunAndReturn(run func() string) *MockValidatorTag_Usage_Call

Jump to

Keyboard shortcuts

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