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 ¶
- type MockIAggregator
- func (m *MockIAggregator[T]) Aggregate(ctx context.Context, opts ...*options.AggregateOptions) ([]*T, error)
- func (m *MockIAggregator[T]) AggregateWithParse(ctx context.Context, result any, opts ...*options.AggregateOptions) error
- func (m *MockIAggregator[T]) EXPECT() *MockIAggregatorMockRecorder[T]
- type MockIAggregatorMockRecorder
- type MockICreator
- func (m *MockICreator[T]) EXPECT() *MockICreatorMockRecorder[T]
- func (m *MockICreator[T]) InsertMany(ctx context.Context, docs []*T, opts ...*options.InsertManyOptions) (*mongo.InsertManyResult, error)
- func (m *MockICreator[T]) InsertOne(ctx context.Context, docs *T, opts ...*options.InsertOneOptions) (*mongo.InsertOneResult, error)
- type MockICreatorMockRecorder
- type MockIDeleter
- func (m *MockIDeleter[T]) DeleteMany(ctx context.Context, opts ...*options.DeleteOptions) (*mongo.DeleteResult, error)
- func (m *MockIDeleter[T]) DeleteOne(ctx context.Context, opts ...*options.DeleteOptions) (*mongo.DeleteResult, error)
- func (m *MockIDeleter[T]) EXPECT() *MockIDeleterMockRecorder[T]
- type MockIDeleterMockRecorder
- type MockIFinder
- func (m *MockIFinder[T]) Count(ctx context.Context, opts ...*options.CountOptions) (int64, error)
- func (m *MockIFinder[T]) Distinct(ctx context.Context, fieldName string, opts ...*options.DistinctOptions) ([]any, error)
- func (m *MockIFinder[T]) DistinctWithParse(ctx context.Context, fieldName string, result any, ...) error
- func (m *MockIFinder[T]) EXPECT() *MockIFinderMockRecorder[T]
- func (m *MockIFinder[T]) Find(ctx context.Context, opts ...*options.FindOptions) ([]*T, error)
- func (m *MockIFinder[T]) FindOne(ctx context.Context, opts ...*options.FindOneOptions) (*T, error)
- func (m *MockIFinder[T]) FindOneAndUpdate(ctx context.Context, opts ...*options.FindOneAndUpdateOptions) (*T, error)
- type MockIFinderMockRecorder
- func (mr *MockIFinderMockRecorder[T]) Count(ctx any, opts ...any) *gomock.Call
- func (mr *MockIFinderMockRecorder[T]) Distinct(ctx, fieldName any, opts ...any) *gomock.Call
- func (mr *MockIFinderMockRecorder[T]) DistinctWithParse(ctx, fieldName, result any, opts ...any) *gomock.Call
- func (mr *MockIFinderMockRecorder[T]) Find(ctx any, opts ...any) *gomock.Call
- func (mr *MockIFinderMockRecorder[T]) FindOne(ctx any, opts ...any) *gomock.Call
- func (mr *MockIFinderMockRecorder[T]) FindOneAndUpdate(ctx any, opts ...any) *gomock.Call
- type MockIUpdater
- func (m *MockIUpdater[T]) EXPECT() *MockIUpdaterMockRecorder[T]
- func (m *MockIUpdater[T]) UpdateMany(ctx context.Context, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)
- func (m *MockIUpdater[T]) UpdateOne(ctx context.Context, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)
- func (m *MockIUpdater[T]) Upsert(ctx context.Context, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)
- type MockIUpdaterMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIAggregator ¶ added in v1.7.0
type MockIAggregator[T any] struct { // contains filtered or unexported fields }
MockIAggregator is a mock of IAggregator interface.
func NewMockIAggregator ¶ added in v1.7.0
func NewMockIAggregator[T any](ctrl *gomock.Controller) *MockIAggregator[T]
NewMockIAggregator creates a new mock instance.
func (*MockIAggregator[T]) Aggregate ¶ added in v1.7.0
func (m *MockIAggregator[T]) Aggregate(ctx context.Context, opts ...*options.AggregateOptions) ([]*T, error)
Aggregate mocks base method.
func (*MockIAggregator[T]) AggregateWithParse ¶ added in v1.7.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 v1.7.0
func (m *MockIAggregator[T]) EXPECT() *MockIAggregatorMockRecorder[T]
EXPECT returns an object that allows the caller to indicate expected use.
type MockIAggregatorMockRecorder ¶ added in v1.7.0
type MockIAggregatorMockRecorder[T any] struct { // contains filtered or unexported fields }
MockIAggregatorMockRecorder is the mock recorder for MockIAggregator.
func (*MockIAggregatorMockRecorder[T]) Aggregate ¶ added in v1.7.0
func (mr *MockIAggregatorMockRecorder[T]) Aggregate(ctx any, opts ...any) *gomock.Call
Aggregate indicates an expected call of Aggregate.
func (*MockIAggregatorMockRecorder[T]) AggregateWithParse ¶ added in v1.7.0
func (mr *MockIAggregatorMockRecorder[T]) AggregateWithParse(ctx, result any, opts ...any) *gomock.Call
AggregateWithParse indicates an expected call of AggregateWithParse.
type MockICreator ¶ added in v1.7.0
type MockICreator[T any] struct { // contains filtered or unexported fields }
MockICreator is a mock of ICreator interface.
func NewMockICreator ¶ added in v1.7.0
func NewMockICreator[T any](ctrl *gomock.Controller) *MockICreator[T]
NewMockICreator creates a new mock instance.
func (*MockICreator[T]) EXPECT ¶ added in v1.7.0
func (m *MockICreator[T]) EXPECT() *MockICreatorMockRecorder[T]
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockICreator[T]) InsertMany ¶ added in v1.7.0
func (m *MockICreator[T]) InsertMany(ctx context.Context, docs []*T, opts ...*options.InsertManyOptions) (*mongo.InsertManyResult, error)
InsertMany mocks base method.
func (*MockICreator[T]) InsertOne ¶ added in v1.7.0
func (m *MockICreator[T]) InsertOne(ctx context.Context, docs *T, opts ...*options.InsertOneOptions) (*mongo.InsertOneResult, error)
InsertOne mocks base method.
type MockICreatorMockRecorder ¶ added in v1.7.0
type MockICreatorMockRecorder[T any] struct { // contains filtered or unexported fields }
MockICreatorMockRecorder is the mock recorder for MockICreator.
func (*MockICreatorMockRecorder[T]) InsertMany ¶ added in v1.7.0
func (mr *MockICreatorMockRecorder[T]) InsertMany(ctx, docs any, opts ...any) *gomock.Call
InsertMany indicates an expected call of InsertMany.
type MockIDeleter ¶ added in v1.7.0
type MockIDeleter[T any] struct { // contains filtered or unexported fields }
MockIDeleter is a mock of IDeleter interface.
func NewMockIDeleter ¶ added in v1.7.0
func NewMockIDeleter[T any](ctrl *gomock.Controller) *MockIDeleter[T]
NewMockIDeleter creates a new mock instance.
func (*MockIDeleter[T]) DeleteMany ¶ added in v1.7.0
func (m *MockIDeleter[T]) DeleteMany(ctx context.Context, opts ...*options.DeleteOptions) (*mongo.DeleteResult, error)
DeleteMany mocks base method.
func (*MockIDeleter[T]) DeleteOne ¶ added in v1.7.0
func (m *MockIDeleter[T]) DeleteOne(ctx context.Context, opts ...*options.DeleteOptions) (*mongo.DeleteResult, error)
DeleteOne mocks base method.
func (*MockIDeleter[T]) EXPECT ¶ added in v1.7.0
func (m *MockIDeleter[T]) EXPECT() *MockIDeleterMockRecorder[T]
EXPECT returns an object that allows the caller to indicate expected use.
type MockIDeleterMockRecorder ¶ added in v1.7.0
type MockIDeleterMockRecorder[T any] struct { // contains filtered or unexported fields }
MockIDeleterMockRecorder is the mock recorder for MockIDeleter.
func (*MockIDeleterMockRecorder[T]) DeleteMany ¶ added in v1.7.0
func (mr *MockIDeleterMockRecorder[T]) DeleteMany(ctx any, opts ...any) *gomock.Call
DeleteMany indicates an expected call of DeleteMany.
type MockIFinder ¶ added in v1.7.0
type MockIFinder[T any] struct { // contains filtered or unexported fields }
MockIFinder is a mock of IFinder interface.
func NewMockIFinder ¶ added in v1.7.0
func NewMockIFinder[T any](ctrl *gomock.Controller) *MockIFinder[T]
NewMockIFinder creates a new mock instance.
func (*MockIFinder[T]) Count ¶ added in v1.7.0
func (m *MockIFinder[T]) Count(ctx context.Context, opts ...*options.CountOptions) (int64, error)
Count mocks base method.
func (*MockIFinder[T]) Distinct ¶ added in v1.7.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 v1.7.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 ¶ added in v1.7.0
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 v1.7.0
func (m *MockIFinder[T]) Find(ctx context.Context, opts ...*options.FindOptions) ([]*T, error)
Find mocks base method.
func (*MockIFinder[T]) FindOne ¶ added in v1.7.0
func (m *MockIFinder[T]) FindOne(ctx context.Context, opts ...*options.FindOneOptions) (*T, error)
FindOne mocks base method.
func (*MockIFinder[T]) FindOneAndUpdate ¶ added in v1.7.0
func (m *MockIFinder[T]) FindOneAndUpdate(ctx context.Context, opts ...*options.FindOneAndUpdateOptions) (*T, error)
FindOneAndUpdate mocks base method.
type MockIFinderMockRecorder ¶ added in v1.7.0
type MockIFinderMockRecorder[T any] struct { // contains filtered or unexported fields }
MockIFinderMockRecorder is the mock recorder for MockIFinder.
func (*MockIFinderMockRecorder[T]) Count ¶ added in v1.7.0
func (mr *MockIFinderMockRecorder[T]) Count(ctx any, opts ...any) *gomock.Call
Count indicates an expected call of Count.
func (*MockIFinderMockRecorder[T]) Distinct ¶ added in v1.7.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 v1.7.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 v1.7.0
func (mr *MockIFinderMockRecorder[T]) Find(ctx any, opts ...any) *gomock.Call
Find indicates an expected call of Find.
func (*MockIFinderMockRecorder[T]) FindOne ¶ added in v1.7.0
func (mr *MockIFinderMockRecorder[T]) FindOne(ctx any, opts ...any) *gomock.Call
FindOne indicates an expected call of FindOne.
func (*MockIFinderMockRecorder[T]) FindOneAndUpdate ¶ added in v1.7.0
func (mr *MockIFinderMockRecorder[T]) FindOneAndUpdate(ctx any, opts ...any) *gomock.Call
FindOneAndUpdate indicates an expected call of FindOneAndUpdate.
type MockIUpdater ¶ added in v1.7.0
type MockIUpdater[T any] struct { // contains filtered or unexported fields }
MockIUpdater is a mock of IUpdater interface.
func NewMockIUpdater ¶ added in v1.7.0
func NewMockIUpdater[T any](ctrl *gomock.Controller) *MockIUpdater[T]
NewMockIUpdater creates a new mock instance.
func (*MockIUpdater[T]) EXPECT ¶ added in v1.7.0
func (m *MockIUpdater[T]) EXPECT() *MockIUpdaterMockRecorder[T]
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIUpdater[T]) UpdateMany ¶ added in v1.7.0
func (m *MockIUpdater[T]) UpdateMany(ctx context.Context, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)
UpdateMany mocks base method.
func (*MockIUpdater[T]) UpdateOne ¶ added in v1.7.0
func (m *MockIUpdater[T]) UpdateOne(ctx context.Context, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)
UpdateOne mocks base method.
func (*MockIUpdater[T]) Upsert ¶ added in v1.7.0
func (m *MockIUpdater[T]) Upsert(ctx context.Context, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)
Upsert mocks base method.
type MockIUpdaterMockRecorder ¶ added in v1.7.0
type MockIUpdaterMockRecorder[T any] struct { // contains filtered or unexported fields }
MockIUpdaterMockRecorder is the mock recorder for MockIUpdater.
func (*MockIUpdaterMockRecorder[T]) UpdateMany ¶ added in v1.7.0
func (mr *MockIUpdaterMockRecorder[T]) UpdateMany(ctx any, opts ...any) *gomock.Call
UpdateMany indicates an expected call of UpdateMany.