mocks

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: aggregator.go

Generated by this command:

mockgen -source=aggregator.go -destination=../mock/aggregator.mock.go -package=mocks

Package mocks is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: creator.go

Generated by this command:

mockgen -source=creator.go -destination=../mock/creator.mock.go -package=mocks

Package mocks is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: deleter.go

Generated by this command:

mockgen -source=deleter.go -destination=../mock/deleter.mock.go -package=mocks

Package mocks is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: finder.go

Generated by this command:

mockgen -source=finder.go -destination=../mock/finder.mock.go -package=mocks

Package mocks is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: updater.go

Generated by this command:

mockgen -source=updater.go -destination=../mock/updater.mock.go -package=mocks

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockiAggregator added in v0.0.3

type MockiAggregator[T any] struct {
	// contains filtered or unexported fields
}

MockiAggregator is a mock of iAggregator interface.

func NewMockiAggregator added in v0.0.3

func NewMockiAggregator[T any](ctrl *gomock.Controller) *MockiAggregator[T]

NewMockiAggregator creates a new mock instance.

func (*MockiAggregator[T]) Aggregate added in v0.0.10

func (m *MockiAggregator[T]) Aggregate(ctx context.Context, opts ...*options.AggregateOptions) ([]*T, error)

Aggregate mocks base method.

func (*MockiAggregator[T]) AggregateWithParse added in v0.11.0

func (m *MockiAggregator[T]) AggregateWithParse(ctx context.Context, result any, opts ...*options.AggregateOptions) error

AggregateWithParse mocks base method.

func (*MockiAggregator[T]) EXPECT added in v0.0.3

func (m *MockiAggregator[T]) EXPECT() *MockiAggregatorMockRecorder[T]

EXPECT returns an object that allows the caller to indicate expected use.

type MockiAggregatorMockRecorder added in v0.0.3

type MockiAggregatorMockRecorder[T any] struct {
	// contains filtered or unexported fields
}

MockiAggregatorMockRecorder is the mock recorder for MockiAggregator.

func (*MockiAggregatorMockRecorder[T]) Aggregate added in v0.0.10

func (mr *MockiAggregatorMockRecorder[T]) Aggregate(ctx any, opts ...any) *gomock.Call

Aggregate indicates an expected call of Aggregate.

func (*MockiAggregatorMockRecorder[T]) AggregateWithParse added in v0.11.0

func (mr *MockiAggregatorMockRecorder[T]) AggregateWithParse(ctx, result any, opts ...any) *gomock.Call

AggregateWithParse indicates an expected call of AggregateWithParse.

type MockiCreator

type MockiCreator[T any] struct {
	// contains filtered or unexported fields
}

MockiCreator is a mock of iCreator interface.

func NewMockiCreator

func NewMockiCreator[T any](ctrl *gomock.Controller) *MockiCreator[T]

NewMockiCreator creates a new mock instance.

func (*MockiCreator[T]) EXPECT

func (m *MockiCreator[T]) EXPECT() *MockiCreatorMockRecorder[T]

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockiCreator[T]) InsertMany

func (m *MockiCreator[T]) InsertMany(ctx context.Context, docs []*T, opts ...*options.InsertManyOptions) (*mongo.InsertManyResult, error)

InsertMany mocks base method.

func (*MockiCreator[T]) InsertOne

func (m *MockiCreator[T]) InsertOne(ctx context.Context, docs *T, opts ...*options.InsertOneOptions) (*mongo.InsertOneResult, error)

InsertOne mocks base method.

type MockiCreatorMockRecorder

type MockiCreatorMockRecorder[T any] struct {
	// contains filtered or unexported fields
}

MockiCreatorMockRecorder is the mock recorder for MockiCreator.

func (*MockiCreatorMockRecorder[T]) InsertMany

func (mr *MockiCreatorMockRecorder[T]) InsertMany(ctx, docs any, opts ...any) *gomock.Call

InsertMany indicates an expected call of InsertMany.

func (*MockiCreatorMockRecorder[T]) InsertOne

func (mr *MockiCreatorMockRecorder[T]) InsertOne(ctx, docs any, opts ...any) *gomock.Call

InsertOne indicates an expected call of InsertOne.

type MockiDeleter

type MockiDeleter[T any] struct {
	// contains filtered or unexported fields
}

MockiDeleter is a mock of iDeleter interface.

func NewMockiDeleter

func NewMockiDeleter[T any](ctrl *gomock.Controller) *MockiDeleter[T]

NewMockiDeleter creates a new mock instance.

func (*MockiDeleter[T]) DeleteMany

func (m *MockiDeleter[T]) DeleteMany(ctx context.Context, opts ...*options.DeleteOptions) (*mongo.DeleteResult, error)

DeleteMany mocks base method.

func (*MockiDeleter[T]) DeleteOne

func (m *MockiDeleter[T]) DeleteOne(ctx context.Context, opts ...*options.DeleteOptions) (*mongo.DeleteResult, error)

DeleteOne mocks base method.

func (*MockiDeleter[T]) EXPECT

func (m *MockiDeleter[T]) EXPECT() *MockiDeleterMockRecorder[T]

EXPECT returns an object that allows the caller to indicate expected use.

type MockiDeleterMockRecorder

type MockiDeleterMockRecorder[T any] struct {
	// contains filtered or unexported fields
}

MockiDeleterMockRecorder is the mock recorder for MockiDeleter.

func (*MockiDeleterMockRecorder[T]) DeleteMany

func (mr *MockiDeleterMockRecorder[T]) DeleteMany(ctx any, opts ...any) *gomock.Call

DeleteMany indicates an expected call of DeleteMany.

func (*MockiDeleterMockRecorder[T]) DeleteOne

func (mr *MockiDeleterMockRecorder[T]) DeleteOne(ctx any, opts ...any) *gomock.Call

DeleteOne indicates an expected call of DeleteOne.

type MockiFinder

type MockiFinder[T any] struct {
	// contains filtered or unexported fields
}

MockiFinder is a mock of iFinder interface.

func NewMockiFinder

func NewMockiFinder[T any](ctrl *gomock.Controller) *MockiFinder[T]

NewMockiFinder creates a new mock instance.

func (*MockiFinder[T]) Count added in v0.0.4

func (m *MockiFinder[T]) Count(ctx context.Context, opts ...*options.CountOptions) (int64, error)

Count mocks base method.

func (*MockiFinder[T]) Distinct added in v0.11.0

func (m *MockiFinder[T]) Distinct(ctx context.Context, fieldName string, opts ...*options.DistinctOptions) ([]any, error)

Distinct mocks base method.

func (*MockiFinder[T]) DistinctWithParse added in v0.11.0

func (m *MockiFinder[T]) DistinctWithParse(ctx context.Context, fieldName string, result any, opts ...*options.DistinctOptions) error

DistinctWithParse mocks base method.

func (*MockiFinder[T]) EXPECT

func (m *MockiFinder[T]) EXPECT() *MockiFinderMockRecorder[T]

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockiFinder[T]) Find added in v0.0.7

func (m *MockiFinder[T]) Find(ctx context.Context, opts ...*options.FindOptions) ([]*T, error)

Find mocks base method.

func (*MockiFinder[T]) FindOne

func (m *MockiFinder[T]) FindOne(ctx context.Context, opts ...*options.FindOneOptions) (*T, error)

FindOne mocks base method.

type MockiFinderMockRecorder

type MockiFinderMockRecorder[T any] struct {
	// contains filtered or unexported fields
}

MockiFinderMockRecorder is the mock recorder for MockiFinder.

func (*MockiFinderMockRecorder[T]) Count added in v0.0.4

func (mr *MockiFinderMockRecorder[T]) Count(ctx any, opts ...any) *gomock.Call

Count indicates an expected call of Count.

func (*MockiFinderMockRecorder[T]) Distinct added in v0.11.0

func (mr *MockiFinderMockRecorder[T]) Distinct(ctx, fieldName any, opts ...any) *gomock.Call

Distinct indicates an expected call of Distinct.

func (*MockiFinderMockRecorder[T]) DistinctWithParse added in v0.11.0

func (mr *MockiFinderMockRecorder[T]) DistinctWithParse(ctx, fieldName, result any, opts ...any) *gomock.Call

DistinctWithParse indicates an expected call of DistinctWithParse.

func (*MockiFinderMockRecorder[T]) Find added in v0.0.7

func (mr *MockiFinderMockRecorder[T]) Find(ctx any, opts ...any) *gomock.Call

Find indicates an expected call of Find.

func (*MockiFinderMockRecorder[T]) FindOne

func (mr *MockiFinderMockRecorder[T]) FindOne(ctx any, opts ...any) *gomock.Call

FindOne indicates an expected call of FindOne.

type MockiUpdater

type MockiUpdater[T any] struct {
	// contains filtered or unexported fields
}

MockiUpdater is a mock of iUpdater interface.

func NewMockiUpdater

func NewMockiUpdater[T any](ctrl *gomock.Controller) *MockiUpdater[T]

NewMockiUpdater creates a new mock instance.

func (*MockiUpdater[T]) EXPECT

func (m *MockiUpdater[T]) EXPECT() *MockiUpdaterMockRecorder[T]

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockiUpdater[T]) UpdateMany

func (m *MockiUpdater[T]) UpdateMany(ctx context.Context, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)

UpdateMany mocks base method.

func (*MockiUpdater[T]) UpdateOne

func (m *MockiUpdater[T]) UpdateOne(ctx context.Context, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)

UpdateOne mocks base method.

func (*MockiUpdater[T]) Upsert added in v0.11.0

func (m *MockiUpdater[T]) Upsert(ctx context.Context, opts ...*options.ReplaceOptions) (*mongo.UpdateResult, error)

Upsert mocks base method.

type MockiUpdaterMockRecorder

type MockiUpdaterMockRecorder[T any] struct {
	// contains filtered or unexported fields
}

MockiUpdaterMockRecorder is the mock recorder for MockiUpdater.

func (*MockiUpdaterMockRecorder[T]) UpdateMany

func (mr *MockiUpdaterMockRecorder[T]) UpdateMany(ctx any, opts ...any) *gomock.Call

UpdateMany indicates an expected call of UpdateMany.

func (*MockiUpdaterMockRecorder[T]) UpdateOne

func (mr *MockiUpdaterMockRecorder[T]) UpdateOne(ctx any, opts ...any) *gomock.Call

UpdateOne indicates an expected call of UpdateOne.

func (*MockiUpdaterMockRecorder[T]) Upsert added in v0.11.0

func (mr *MockiUpdaterMockRecorder[T]) Upsert(ctx any, opts ...any) *gomock.Call

Upsert indicates an expected call of Upsert.

Jump to

Keyboard shortcuts

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