mock_schema_registry

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSchemaRegistry

type MockSchemaRegistry struct {
	mock.Mock
}

MockSchemaRegistry is an autogenerated mock type for the SchemaRegistry type

func NewMockSchemaRegistry

func NewMockSchemaRegistry(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSchemaRegistry

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

func (*MockSchemaRegistry) GetSchema

func (_mock *MockSchemaRegistry) GetSchema(ocppVersion ocpp.Version, action string) (*jsonschema.Schema, bool)

GetSchema provides a mock function for the type MockSchemaRegistry

func (*MockSchemaRegistry) RegisterSchema

func (_mock *MockSchemaRegistry) RegisterSchema(ocppVersion ocpp.Version, action string, rawSchema json.RawMessage, opts ...schema_registry.Option) error

RegisterSchema provides a mock function for the type MockSchemaRegistry

type MockSchemaRegistry_Expecter

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

func (*MockSchemaRegistry_Expecter) GetSchema

func (_e *MockSchemaRegistry_Expecter) GetSchema(ocppVersion interface{}, action interface{}) *MockSchemaRegistry_GetSchema_Call

GetSchema is a helper method to define mock.On call

  • ocppVersion ocpp.Version
  • action string

func (*MockSchemaRegistry_Expecter) RegisterSchema

func (_e *MockSchemaRegistry_Expecter) RegisterSchema(ocppVersion interface{}, action interface{}, rawSchema interface{}, opts ...interface{}) *MockSchemaRegistry_RegisterSchema_Call

RegisterSchema is a helper method to define mock.On call

  • ocppVersion ocpp.Version
  • action string
  • rawSchema json.RawMessage
  • opts ...schema_registry.Option

type MockSchemaRegistry_GetSchema_Call

type MockSchemaRegistry_GetSchema_Call struct {
	*mock.Call
}

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

func (*MockSchemaRegistry_GetSchema_Call) Return

func (*MockSchemaRegistry_GetSchema_Call) Run

func (*MockSchemaRegistry_GetSchema_Call) RunAndReturn

func (_c *MockSchemaRegistry_GetSchema_Call) RunAndReturn(run func(ocppVersion ocpp.Version, action string) (*jsonschema.Schema, bool)) *MockSchemaRegistry_GetSchema_Call

type MockSchemaRegistry_RegisterSchema_Call

type MockSchemaRegistry_RegisterSchema_Call struct {
	*mock.Call
}

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

func (*MockSchemaRegistry_RegisterSchema_Call) Return

func (*MockSchemaRegistry_RegisterSchema_Call) Run

func (*MockSchemaRegistry_RegisterSchema_Call) RunAndReturn

Jump to

Keyboard shortcuts

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