mocks

package
v0.0.0-...-2302940 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ICollectionDb

type ICollectionDb struct {
	mock.Mock
}

ICollectionDb is an autogenerated mock type for the ICollectionDb type

func NewICollectionDb

func NewICollectionDb(t interface {
	mock.TestingT
	Cleanup(func())
}) *ICollectionDb

NewICollectionDb creates a new instance of ICollectionDb. 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 (*ICollectionDb) DeleteAll

func (_m *ICollectionDb) DeleteAll() error

DeleteAll provides a mock function with given fields:

func (*ICollectionDb) DeleteCollectionByID

func (_m *ICollectionDb) DeleteCollectionByID(collectionID string) (int, error)

DeleteCollectionByID provides a mock function with given fields: collectionID

func (*ICollectionDb) GetCollections

func (_m *ICollectionDb) GetCollections(collectionID *string, collectionName *string, tenantID string, databaseName string, limit *int32, offset *int32) ([]*dbmodel.CollectionAndMetadata, error)

GetCollections provides a mock function with given fields: collectionID, collectionName, tenantID, databaseName, limit, offset

func (*ICollectionDb) Insert

func (_m *ICollectionDb) Insert(in *dbmodel.Collection) error

Insert provides a mock function with given fields: in

func (*ICollectionDb) Update

func (_m *ICollectionDb) Update(in *dbmodel.Collection) error

Update provides a mock function with given fields: in

func (*ICollectionDb) UpdateLogPositionAndVersion

func (_m *ICollectionDb) UpdateLogPositionAndVersion(collectionID string, logPosition int64, currentCollectionVersion int32) (int32, error)

UpdateLogPositionAndVersion provides a mock function with given fields: collectionID, logPosition, currentCollectionVersion

type ICollectionMetadataDb

type ICollectionMetadataDb struct {
	mock.Mock
}

ICollectionMetadataDb is an autogenerated mock type for the ICollectionMetadataDb type

func NewICollectionMetadataDb

func NewICollectionMetadataDb(t interface {
	mock.TestingT
	Cleanup(func())
}) *ICollectionMetadataDb

NewICollectionMetadataDb creates a new instance of ICollectionMetadataDb. 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 (*ICollectionMetadataDb) DeleteAll

func (_m *ICollectionMetadataDb) DeleteAll() error

DeleteAll provides a mock function with given fields:

func (*ICollectionMetadataDb) DeleteByCollectionID

func (_m *ICollectionMetadataDb) DeleteByCollectionID(collectionID string) (int, error)

DeleteByCollectionID provides a mock function with given fields: collectionID

func (*ICollectionMetadataDb) Insert

Insert provides a mock function with given fields: in

type IDatabaseDb

type IDatabaseDb struct {
	mock.Mock
}

IDatabaseDb is an autogenerated mock type for the IDatabaseDb type

func NewIDatabaseDb

func NewIDatabaseDb(t interface {
	mock.TestingT
	Cleanup(func())
}) *IDatabaseDb

NewIDatabaseDb creates a new instance of IDatabaseDb. 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 (*IDatabaseDb) DeleteAll

func (_m *IDatabaseDb) DeleteAll() error

DeleteAll provides a mock function with given fields:

func (*IDatabaseDb) GetAllDatabases

func (_m *IDatabaseDb) GetAllDatabases() ([]*dbmodel.Database, error)

GetAllDatabases provides a mock function with given fields:

func (*IDatabaseDb) GetDatabases

func (_m *IDatabaseDb) GetDatabases(tenantID string, databaseName string) ([]*dbmodel.Database, error)

GetDatabases provides a mock function with given fields: tenantID, databaseName

func (*IDatabaseDb) Insert

func (_m *IDatabaseDb) Insert(in *dbmodel.Database) error

Insert provides a mock function with given fields: in

type IMetaDomain

type IMetaDomain struct {
	mock.Mock
}

IMetaDomain is an autogenerated mock type for the IMetaDomain type

func NewIMetaDomain

func NewIMetaDomain(t interface {
	mock.TestingT
	Cleanup(func())
}) *IMetaDomain

NewIMetaDomain creates a new instance of IMetaDomain. 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 (*IMetaDomain) CollectionDb

func (_m *IMetaDomain) CollectionDb(ctx context.Context) dbmodel.ICollectionDb

CollectionDb provides a mock function with given fields: ctx

func (*IMetaDomain) CollectionMetadataDb

func (_m *IMetaDomain) CollectionMetadataDb(ctx context.Context) dbmodel.ICollectionMetadataDb

CollectionMetadataDb provides a mock function with given fields: ctx

func (*IMetaDomain) DatabaseDb

func (_m *IMetaDomain) DatabaseDb(ctx context.Context) dbmodel.IDatabaseDb

DatabaseDb provides a mock function with given fields: ctx

func (*IMetaDomain) NotificationDb

func (_m *IMetaDomain) NotificationDb(ctx context.Context) dbmodel.INotificationDb

NotificationDb provides a mock function with given fields: ctx

func (*IMetaDomain) SegmentDb

func (_m *IMetaDomain) SegmentDb(ctx context.Context) dbmodel.ISegmentDb

SegmentDb provides a mock function with given fields: ctx

func (*IMetaDomain) SegmentMetadataDb

func (_m *IMetaDomain) SegmentMetadataDb(ctx context.Context) dbmodel.ISegmentMetadataDb

SegmentMetadataDb provides a mock function with given fields: ctx

func (*IMetaDomain) TenantDb

func (_m *IMetaDomain) TenantDb(ctx context.Context) dbmodel.ITenantDb

TenantDb provides a mock function with given fields: ctx

type INotificationDb

type INotificationDb struct {
	mock.Mock
}

INotificationDb is an autogenerated mock type for the INotificationDb type

func NewINotificationDb

func NewINotificationDb(t interface {
	mock.TestingT
	Cleanup(func())
}) *INotificationDb

NewINotificationDb creates a new instance of INotificationDb. 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 (*INotificationDb) Delete

func (_m *INotificationDb) Delete(id []int64) error

Delete provides a mock function with given fields: id

func (*INotificationDb) DeleteAll

func (_m *INotificationDb) DeleteAll() error

DeleteAll provides a mock function with given fields:

func (*INotificationDb) GetAllPendingNotifications

func (_m *INotificationDb) GetAllPendingNotifications() ([]*dbmodel.Notification, error)

GetAllPendingNotifications provides a mock function with given fields:

func (*INotificationDb) GetNotificationByCollectionID

func (_m *INotificationDb) GetNotificationByCollectionID(collectionID string) ([]*dbmodel.Notification, error)

GetNotificationByCollectionID provides a mock function with given fields: collectionID

func (*INotificationDb) Insert

func (_m *INotificationDb) Insert(in *dbmodel.Notification) error

Insert provides a mock function with given fields: in

type ISegmentDb

type ISegmentDb struct {
	mock.Mock
}

ISegmentDb is an autogenerated mock type for the ISegmentDb type

func NewISegmentDb

func NewISegmentDb(t interface {
	mock.TestingT
	Cleanup(func())
}) *ISegmentDb

NewISegmentDb creates a new instance of ISegmentDb. 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 (*ISegmentDb) DeleteAll

func (_m *ISegmentDb) DeleteAll() error

DeleteAll provides a mock function with given fields:

func (*ISegmentDb) DeleteSegmentByID

func (_m *ISegmentDb) DeleteSegmentByID(id string) error

DeleteSegmentByID provides a mock function with given fields: id

func (*ISegmentDb) GetSegments

func (_m *ISegmentDb) GetSegments(id types.UniqueID, segmentType *string, scope *string, collectionID types.UniqueID) ([]*dbmodel.SegmentAndMetadata, error)

GetSegments provides a mock function with given fields: id, segmentType, scope, collectionID

func (*ISegmentDb) Insert

func (_m *ISegmentDb) Insert(_a0 *dbmodel.Segment) error

Insert provides a mock function with given fields: _a0

func (*ISegmentDb) Update

func (_m *ISegmentDb) Update(_a0 *dbmodel.UpdateSegment) error

Update provides a mock function with given fields: _a0

type ISegmentMetadataDb

type ISegmentMetadataDb struct {
	mock.Mock
}

ISegmentMetadataDb is an autogenerated mock type for the ISegmentMetadataDb type

func NewISegmentMetadataDb

func NewISegmentMetadataDb(t interface {
	mock.TestingT
	Cleanup(func())
}) *ISegmentMetadataDb

NewISegmentMetadataDb creates a new instance of ISegmentMetadataDb. 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 (*ISegmentMetadataDb) DeleteAll

func (_m *ISegmentMetadataDb) DeleteAll() error

DeleteAll provides a mock function with given fields:

func (*ISegmentMetadataDb) DeleteBySegmentID

func (_m *ISegmentMetadataDb) DeleteBySegmentID(segmentID string) error

DeleteBySegmentID provides a mock function with given fields: segmentID

func (*ISegmentMetadataDb) DeleteBySegmentIDAndKeys

func (_m *ISegmentMetadataDb) DeleteBySegmentIDAndKeys(segmentID string, keys []string) error

DeleteBySegmentIDAndKeys provides a mock function with given fields: segmentID, keys

func (*ISegmentMetadataDb) Insert

func (_m *ISegmentMetadataDb) Insert(in []*dbmodel.SegmentMetadata) error

Insert provides a mock function with given fields: in

type ITenantDb

type ITenantDb struct {
	mock.Mock
}

ITenantDb is an autogenerated mock type for the ITenantDb type

func NewITenantDb

func NewITenantDb(t interface {
	mock.TestingT
	Cleanup(func())
}) *ITenantDb

NewITenantDb creates a new instance of ITenantDb. 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 (*ITenantDb) DeleteAll

func (_m *ITenantDb) DeleteAll() error

DeleteAll provides a mock function with given fields:

func (*ITenantDb) GetAllTenants

func (_m *ITenantDb) GetAllTenants() ([]*dbmodel.Tenant, error)

GetAllTenants provides a mock function with given fields:

func (*ITenantDb) GetTenants

func (_m *ITenantDb) GetTenants(tenantID string) ([]*dbmodel.Tenant, error)

GetTenants provides a mock function with given fields: tenantID

func (*ITenantDb) Insert

func (_m *ITenantDb) Insert(in *dbmodel.Tenant) error

Insert provides a mock function with given fields: in

type ITransaction

type ITransaction struct {
	mock.Mock
}

ITransaction is an autogenerated mock type for the ITransaction type

func NewITransaction

func NewITransaction(t interface {
	mock.TestingT
	Cleanup(func())
}) *ITransaction

NewITransaction creates a new instance of ITransaction. 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 (*ITransaction) Transaction

func (_m *ITransaction) Transaction(ctx context.Context, fn func(context.Context) error) error

Transaction provides a mock function with given fields: ctx, fn

Jump to

Keyboard shortcuts

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