mocks

package
v1.15.3 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONSchemaValidator added in v1.14.4

type JSONSchemaValidator struct {
	mock.Mock
}

JSONSchemaValidator is an autogenerated mock type for the JSONSchemaValidator type

func NewJSONSchemaValidator added in v1.14.4

func NewJSONSchemaValidator(t mockConstructorTestingTNewJSONSchemaValidator) *JSONSchemaValidator

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

func (*JSONSchemaValidator) ValidateDocument added in v1.14.4

func (_m *JSONSchemaValidator) ValidateDocument(schemaID string, documentSource interface{}) error

ValidateDocument provides a mock function with given fields: schemaID, documentSource

type OptionFunc added in v1.14.0

type OptionFunc struct {
	mock.Mock
}

OptionFunc is an autogenerated mock type for the OptionFunc type

func NewOptionFunc added in v1.14.0

func NewOptionFunc(t mockConstructorTestingTNewOptionFunc) *OptionFunc

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

func (*OptionFunc) Execute added in v1.14.0

func (_m *OptionFunc) Execute(_a0 *validator.Validator)

Execute provides a mock function with given fields: _a0

type Storage

type Storage struct {
	mock.Mock
}

Storage is an autogenerated mock type for the Storage type

func NewStorage

func NewStorage(t mockConstructorTestingTNewStorage) *Storage

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

func (*Storage) Get

func (_m *Storage) Get(schemaID string) (string, error)

Get provides a mock function with given fields: schemaID

func (*Storage) Store

func (_m *Storage) Store(schemaID string, schema string) error

Store provides a mock function with given fields: schemaID, schema

type StructValidator added in v1.14.4

type StructValidator struct {
	mock.Mock
}

StructValidator is an autogenerated mock type for the StructValidator type

func NewStructValidator added in v1.14.4

func NewStructValidator(t mockConstructorTestingTNewStructValidator) *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.

func (*StructValidator) ValidateStruct added in v1.14.4

func (_m *StructValidator) ValidateStruct(data interface{}) error

ValidateStruct provides a mock function with given fields: data

Jump to

Keyboard shortcuts

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