Documentation
¶
Index ¶
- type MockSchemaRegistry
- func (_m *MockSchemaRegistry) EXPECT() *MockSchemaRegistry_Expecter
- func (_mock *MockSchemaRegistry) GetSchema(ocppVersion ocpp.Version, action string) (*jsonschema.Schema, bool)
- func (_mock *MockSchemaRegistry) RegisterSchema(ocppVersion ocpp.Version, action string, rawSchema json.RawMessage, ...) error
- type MockSchemaRegistry_Expecter
- type MockSchemaRegistry_GetSchema_Call
- func (_c *MockSchemaRegistry_GetSchema_Call) Return(schema *jsonschema.Schema, b bool) *MockSchemaRegistry_GetSchema_Call
- func (_c *MockSchemaRegistry_GetSchema_Call) Run(run func(ocppVersion ocpp.Version, action string)) *MockSchemaRegistry_GetSchema_Call
- func (_c *MockSchemaRegistry_GetSchema_Call) RunAndReturn(run func(ocppVersion ocpp.Version, action string) (*jsonschema.Schema, bool)) *MockSchemaRegistry_GetSchema_Call
- type MockSchemaRegistry_RegisterSchema_Call
- func (_c *MockSchemaRegistry_RegisterSchema_Call) Return(err error) *MockSchemaRegistry_RegisterSchema_Call
- func (_c *MockSchemaRegistry_RegisterSchema_Call) Run(...) *MockSchemaRegistry_RegisterSchema_Call
- func (_c *MockSchemaRegistry_RegisterSchema_Call) RunAndReturn(...) *MockSchemaRegistry_RegisterSchema_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSchemaRegistry ¶
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 (_m *MockSchemaRegistry) EXPECT() *MockSchemaRegistry_Expecter
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 ¶
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 (_c *MockSchemaRegistry_GetSchema_Call) Return(schema *jsonschema.Schema, b bool) *MockSchemaRegistry_GetSchema_Call
func (*MockSchemaRegistry_GetSchema_Call) Run ¶
func (_c *MockSchemaRegistry_GetSchema_Call) Run(run func(ocppVersion ocpp.Version, action string)) *MockSchemaRegistry_GetSchema_Call
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 ¶
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 (_c *MockSchemaRegistry_RegisterSchema_Call) Return(err error) *MockSchemaRegistry_RegisterSchema_Call
func (*MockSchemaRegistry_RegisterSchema_Call) Run ¶
func (_c *MockSchemaRegistry_RegisterSchema_Call) Run(run func(ocppVersion ocpp.Version, action string, rawSchema json.RawMessage, opts ...schema_registry.Option)) *MockSchemaRegistry_RegisterSchema_Call
func (*MockSchemaRegistry_RegisterSchema_Call) RunAndReturn ¶
func (_c *MockSchemaRegistry_RegisterSchema_Call) RunAndReturn(run func(ocppVersion ocpp.Version, action string, rawSchema json.RawMessage, opts ...schema_registry.Option) error) *MockSchemaRegistry_RegisterSchema_Call