mocks

package
v1.18.4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*JSONSchemaValidator) ValidateDocument added in v1.14.4

func (_m *JSONSchemaValidator) ValidateDocument(schemaID string, documentSource any) 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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*StructValidator) ValidateStruct added in v1.14.4

func (_m *StructValidator) ValidateStruct(data any) 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