mocks

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeDetectorService added in v0.8.0

type ChangeDetectorService struct {
	mock.Mock
}

ChangeDetectorService is an autogenerated mock type for the ChangeDetectorService type

func NewChangeDetectorService added in v0.8.0

func NewChangeDetectorService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ChangeDetectorService

NewChangeDetectorService creates a new instance of ChangeDetectorService. 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 (*ChangeDetectorService) IdentifySchemaChange added in v0.8.0

IdentifySchemaChange provides a mock function with given fields: ctx, request

type NamespaceService

type NamespaceService struct {
	mock.Mock
}

NamespaceService is an autogenerated mock type for the NamespaceService type

func NewNamespaceService

func NewNamespaceService(t testing.TB) *NamespaceService

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

func (*NamespaceService) Get

Get provides a mock function with given fields: ctx, name

type NotificationEventRepository added in v0.8.0

type NotificationEventRepository struct {
	mock.Mock
}

NotificationEventRepository is an autogenerated mock type for the NotificationEventRepository type

func NewNotificationEventRepository added in v0.8.0

func NewNotificationEventRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *NotificationEventRepository

NewNotificationEventRepository creates a new instance of NotificationEventRepository. 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 (*NotificationEventRepository) Create added in v0.8.0

Create provides a mock function with given fields: ctx, event

func (*NotificationEventRepository) GetByNameSpaceSchemaVersionAndSuccess added in v0.8.0

func (_m *NotificationEventRepository) GetByNameSpaceSchemaVersionAndSuccess(ctx context.Context, namespace string, schemaID int32, versionID string, success bool) (changedetector.NotificationEvent, error)

GetByNameSpaceSchemaVersionAndSuccess provides a mock function with given fields: ctx, namespace, schemaID, versionID, success

func (*NotificationEventRepository) Update added in v0.8.0

Update provides a mock function with given fields: ctx, Id, success

type ParsedSchema

type ParsedSchema struct {
	mock.Mock
}

ParsedSchema is an autogenerated mock type for the ParsedSchema type

func NewParsedSchema

func NewParsedSchema(t testing.TB) *ParsedSchema

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

func (*ParsedSchema) Format

func (_m *ParsedSchema) Format() string

Format provides a mock function with given fields:

func (*ParsedSchema) GetCanonicalValue

func (_m *ParsedSchema) GetCanonicalValue() *schema.SchemaFile

GetCanonicalValue provides a mock function with given fields:

func (*ParsedSchema) IsBackwardCompatible

func (_m *ParsedSchema) IsBackwardCompatible(_a0 schema.ParsedSchema) error

IsBackwardCompatible provides a mock function with given fields: _a0

func (*ParsedSchema) IsForwardCompatible

func (_m *ParsedSchema) IsForwardCompatible(_a0 schema.ParsedSchema) error

IsForwardCompatible provides a mock function with given fields: _a0

func (*ParsedSchema) IsFullCompatible

func (_m *ParsedSchema) IsFullCompatible(_a0 schema.ParsedSchema) error

IsFullCompatible provides a mock function with given fields: _a0

type Producer added in v0.8.0

type Producer struct {
	mock.Mock
}

Producer is an autogenerated mock type for the Producer type

func NewProducer added in v0.8.0

func NewProducer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Producer

NewProducer creates a new instance of Producer. 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 (*Producer) Write added in v0.8.0

func (_m *Producer) Write(topic string, protoMessage protoreflect.ProtoMessage) error

Write provides a mock function with given fields: topic, protoMessage

type SchemaCache

type SchemaCache struct {
	mock.Mock
}

SchemaCache is an autogenerated mock type for the Cache type

func NewSchemaCache

func NewSchemaCache(t testing.TB) *SchemaCache

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

func (*SchemaCache) Get

func (_m *SchemaCache) Get(_a0 interface{}) (interface{}, bool)

Get provides a mock function with given fields: _a0

func (*SchemaCache) Set

func (_m *SchemaCache) Set(_a0 interface{}, _a1 interface{}, _a2 int64) bool

Set provides a mock function with given fields: _a0, _a1, _a2

type SchemaProvider

type SchemaProvider struct {
	mock.Mock
}

SchemaProvider is an autogenerated mock type for the Provider type

func NewSchemaProvider

func NewSchemaProvider(t testing.TB) *SchemaProvider

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

func (*SchemaProvider) ParseSchema

func (_m *SchemaProvider) ParseSchema(format string, data []byte) (schema.ParsedSchema, error)

ParseSchema provides a mock function with given fields: format, data

type SchemaRepository

type SchemaRepository struct {
	mock.Mock
}

SchemaRepository is an autogenerated mock type for the SchemaRepository type

func NewSchemaRepository

func NewSchemaRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *SchemaRepository

NewSchemaRepository creates a new instance of SchemaRepository. 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 (*SchemaRepository) Create

func (_m *SchemaRepository) Create(ctx context.Context, request *schema.UpdateSchemaRequest, versionID string, commitSHA string) (int32, error)

Create provides a mock function with given fields: ctx, request, versionID, commitSHA

func (*SchemaRepository) Delete

func (_m *SchemaRepository) Delete(_a0 context.Context, _a1 string, _a2 string) error

Delete provides a mock function with given fields: _a0, _a1, _a2

func (*SchemaRepository) DeleteVersion

func (_m *SchemaRepository) DeleteVersion(_a0 context.Context, _a1 string, _a2 string, _a3 int32) error

DeleteVersion provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*SchemaRepository) Get

func (_m *SchemaRepository) Get(_a0 context.Context, _a1 string, _a2 string, _a3 int32) ([]byte, error)

Get provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*SchemaRepository) GetLatestVersion

func (_m *SchemaRepository) GetLatestVersion(_a0 context.Context, _a1 string, _a2 string) (int32, error)

GetLatestVersion provides a mock function with given fields: _a0, _a1, _a2

func (*SchemaRepository) GetMetadata

func (_m *SchemaRepository) GetMetadata(_a0 context.Context, _a1 string, _a2 string) (*schema.Metadata, error)

GetMetadata provides a mock function with given fields: _a0, _a1, _a2

func (*SchemaRepository) GetSchemaID added in v0.8.0

func (_m *SchemaRepository) GetSchemaID(ctx context.Context, ns string, sc string) (int32, error)

GetSchemaID provides a mock function with given fields: ctx, ns, sc

func (*SchemaRepository) GetVersionCommitSHA added in v0.8.6

func (_m *SchemaRepository) GetVersionCommitSHA(ctx context.Context, schemaID int32, version int32) (string, error)

GetVersionCommitSHA provides a mock function with given fields: ctx, schemaID, version

func (*SchemaRepository) List

func (_m *SchemaRepository) List(_a0 context.Context, _a1 string) ([]schema.Schema, error)

List provides a mock function with given fields: _a0, _a1

func (*SchemaRepository) ListVersions

func (_m *SchemaRepository) ListVersions(_a0 context.Context, _a1 string, _a2 string) ([]int32, error)

ListVersions provides a mock function with given fields: _a0, _a1, _a2

func (*SchemaRepository) UpdateMetadata

func (_m *SchemaRepository) UpdateMetadata(_a0 context.Context, _a1 string, _a2 string, _a3 *schema.Metadata) (*schema.Metadata, error)

UpdateMetadata provides a mock function with given fields: _a0, _a1, _a2, _a3

Jump to

Keyboard shortcuts

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