mocks

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

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 MockChangeStream

type MockChangeStream struct {
	// contains filtered or unexported fields
}

MockChangeStream is a mock of ChangeStream interface.

func NewMockChangeStream

func NewMockChangeStream(ctrl *gomock.Controller) *MockChangeStream

NewMockChangeStream creates a new mock instance.

func (*MockChangeStream) Close

func (m *MockChangeStream) Close(ctx context.Context) error

Close mocks base method.

func (*MockChangeStream) Current

func (m *MockChangeStream) Current() bson.Raw

Current mocks base method.

func (*MockChangeStream) Decode

func (m *MockChangeStream) Decode(val interface{}) error

Decode mocks base method.

func (*MockChangeStream) EXPECT

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

func (*MockChangeStream) Err

func (m *MockChangeStream) Err() error

Err mocks base method.

func (*MockChangeStream) ID

func (m *MockChangeStream) ID() int64

ID mocks base method.

func (*MockChangeStream) Next

func (m *MockChangeStream) Next(ctx context.Context) bool

Next mocks base method.

func (*MockChangeStream) ResumeToken

func (m *MockChangeStream) ResumeToken() bson.Raw

ResumeToken mocks base method.

func (*MockChangeStream) TryNext

func (m *MockChangeStream) TryNext(ctx context.Context) bool

TryNext mocks base method.

func (*MockChangeStream) WrappedChangeStream

func (m *MockChangeStream) WrappedChangeStream() *mongo.ChangeStream

WrappedChangeStream mocks base method.

type MockChangeStreamMockRecorder

type MockChangeStreamMockRecorder struct {
	// contains filtered or unexported fields
}

MockChangeStreamMockRecorder is the mock recorder for MockChangeStream.

func (*MockChangeStreamMockRecorder) Close

func (mr *MockChangeStreamMockRecorder) Close(ctx interface{}) *gomock.Call

Close indicates an expected call of Close.

func (*MockChangeStreamMockRecorder) Current

func (mr *MockChangeStreamMockRecorder) Current() *gomock.Call

Current indicates an expected call of Current.

func (*MockChangeStreamMockRecorder) Decode

func (mr *MockChangeStreamMockRecorder) Decode(val interface{}) *gomock.Call

Decode indicates an expected call of Decode.

func (*MockChangeStreamMockRecorder) Err

Err indicates an expected call of Err.

func (*MockChangeStreamMockRecorder) ID

ID indicates an expected call of ID.

func (*MockChangeStreamMockRecorder) Next

func (mr *MockChangeStreamMockRecorder) Next(ctx interface{}) *gomock.Call

Next indicates an expected call of Next.

func (*MockChangeStreamMockRecorder) ResumeToken

func (mr *MockChangeStreamMockRecorder) ResumeToken() *gomock.Call

ResumeToken indicates an expected call of ResumeToken.

func (*MockChangeStreamMockRecorder) TryNext

func (mr *MockChangeStreamMockRecorder) TryNext(ctx interface{}) *gomock.Call

TryNext indicates an expected call of TryNext.

func (*MockChangeStreamMockRecorder) WrappedChangeStream

func (mr *MockChangeStreamMockRecorder) WrappedChangeStream() *gomock.Call

WrappedChangeStream indicates an expected call of WrappedChangeStream.

type MockClient

type MockClient struct {
	// contains filtered or unexported fields
}

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) Connect

func (m *MockClient) Connect(ctx context.Context) error

Connect mocks base method.

func (*MockClient) Database

func (m *MockClient) Database(name string, opts ...*options.DatabaseOptions) mongoifc.Database

Database mocks base method.

func (*MockClient) Disconnect

func (m *MockClient) Disconnect(ctx context.Context) error

Disconnect mocks base method.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) ListDatabaseNames

func (m *MockClient) ListDatabaseNames(ctx context.Context, filter interface{}, opts ...*options.ListDatabasesOptions) ([]string, error)

ListDatabaseNames mocks base method.

func (*MockClient) ListDatabases

func (m *MockClient) ListDatabases(ctx context.Context, filter interface{}, opts ...*options.ListDatabasesOptions) (mongo.ListDatabasesResult, error)

ListDatabases mocks base method.

func (*MockClient) NumberSessionsInProgress

func (m *MockClient) NumberSessionsInProgress() int

NumberSessionsInProgress mocks base method.

func (*MockClient) Ping

func (m *MockClient) Ping(ctx context.Context, rp *readpref.ReadPref) error

Ping mocks base method.

func (*MockClient) StartSession

func (m *MockClient) StartSession(opts ...*options.SessionOptions) (mongoifc.Session, error)

StartSession mocks base method.

func (*MockClient) UseSession

func (m *MockClient) UseSession(ctx context.Context, fn func(mongo.SessionContext) error) error

UseSession mocks base method.

func (*MockClient) UseSessionWithOptions

func (m *MockClient) UseSessionWithOptions(ctx context.Context, opts *options.SessionOptions, fn func(mongo.SessionContext) error) error

UseSessionWithOptions mocks base method.

func (*MockClient) Watch

func (m *MockClient) Watch(ctx context.Context, pipeline interface{}, opts ...*options.ChangeStreamOptions) (mongoifc.ChangeStream, error)

Watch mocks base method.

func (*MockClient) WrappedClient

func (m *MockClient) WrappedClient() *mongo.Client

WrappedClient mocks base method.

type MockClientMockRecorder

type MockClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) Connect

func (mr *MockClientMockRecorder) Connect(ctx interface{}) *gomock.Call

Connect indicates an expected call of Connect.

func (*MockClientMockRecorder) Database

func (mr *MockClientMockRecorder) Database(name interface{}, opts ...interface{}) *gomock.Call

Database indicates an expected call of Database.

func (*MockClientMockRecorder) Disconnect

func (mr *MockClientMockRecorder) Disconnect(ctx interface{}) *gomock.Call

Disconnect indicates an expected call of Disconnect.

func (*MockClientMockRecorder) ListDatabaseNames

func (mr *MockClientMockRecorder) ListDatabaseNames(ctx, filter interface{}, opts ...interface{}) *gomock.Call

ListDatabaseNames indicates an expected call of ListDatabaseNames.

func (*MockClientMockRecorder) ListDatabases

func (mr *MockClientMockRecorder) ListDatabases(ctx, filter interface{}, opts ...interface{}) *gomock.Call

ListDatabases indicates an expected call of ListDatabases.

func (*MockClientMockRecorder) NumberSessionsInProgress

func (mr *MockClientMockRecorder) NumberSessionsInProgress() *gomock.Call

NumberSessionsInProgress indicates an expected call of NumberSessionsInProgress.

func (*MockClientMockRecorder) Ping

func (mr *MockClientMockRecorder) Ping(ctx, rp interface{}) *gomock.Call

Ping indicates an expected call of Ping.

func (*MockClientMockRecorder) StartSession

func (mr *MockClientMockRecorder) StartSession(opts ...interface{}) *gomock.Call

StartSession indicates an expected call of StartSession.

func (*MockClientMockRecorder) UseSession

func (mr *MockClientMockRecorder) UseSession(ctx, fn interface{}) *gomock.Call

UseSession indicates an expected call of UseSession.

func (*MockClientMockRecorder) UseSessionWithOptions

func (mr *MockClientMockRecorder) UseSessionWithOptions(ctx, opts, fn interface{}) *gomock.Call

UseSessionWithOptions indicates an expected call of UseSessionWithOptions.

func (*MockClientMockRecorder) Watch

func (mr *MockClientMockRecorder) Watch(ctx, pipeline interface{}, opts ...interface{}) *gomock.Call

Watch indicates an expected call of Watch.

func (*MockClientMockRecorder) WrappedClient

func (mr *MockClientMockRecorder) WrappedClient() *gomock.Call

WrappedClient indicates an expected call of WrappedClient.

type MockCollection

type MockCollection struct {
	// contains filtered or unexported fields
}

MockCollection is a mock of Collection interface.

func NewMockCollection

func NewMockCollection(ctrl *gomock.Controller) *MockCollection

NewMockCollection creates a new mock instance.

func (*MockCollection) Aggregate

func (m *MockCollection) Aggregate(ctx context.Context, pipeline interface{}, opts ...*options.AggregateOptions) (mongoifc.Cursor, error)

Aggregate mocks base method.

func (*MockCollection) BulkWrite

BulkWrite mocks base method.

func (*MockCollection) Clone

Clone mocks base method.

func (*MockCollection) CountDocuments

func (m *MockCollection) CountDocuments(ctx context.Context, filter interface{}, opts ...*options.CountOptions) (int64, error)

CountDocuments mocks base method.

func (*MockCollection) Database

func (m *MockCollection) Database() mongoifc.Database

Database mocks base method.

func (*MockCollection) DeleteMany

func (m *MockCollection) DeleteMany(ctx context.Context, filter interface{}, opts ...*options.DeleteOptions) (*mongo.DeleteResult, error)

DeleteMany mocks base method.

func (*MockCollection) DeleteOne

func (m *MockCollection) DeleteOne(ctx context.Context, filter interface{}, opts ...*options.DeleteOptions) (*mongo.DeleteResult, error)

DeleteOne mocks base method.

func (*MockCollection) Distinct

func (m *MockCollection) Distinct(ctx context.Context, fieldName string, filter interface{}, opts ...*options.DistinctOptions) ([]interface{}, error)

Distinct mocks base method.

func (*MockCollection) Drop

func (m *MockCollection) Drop(ctx context.Context) error

Drop mocks base method.

func (*MockCollection) EXPECT

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

func (*MockCollection) EstimatedDocumentCount

func (m *MockCollection) EstimatedDocumentCount(ctx context.Context, opts ...*options.EstimatedDocumentCountOptions) (int64, error)

EstimatedDocumentCount mocks base method.

func (*MockCollection) Find

func (m *MockCollection) Find(ctx context.Context, filter interface{}, opts ...*options.FindOptions) (mongoifc.Cursor, error)

Find mocks base method.

func (*MockCollection) FindOne

func (m *MockCollection) FindOne(ctx context.Context, filter interface{}, opts ...*options.FindOneOptions) mongoifc.SingleResult

FindOne mocks base method.

func (*MockCollection) FindOneAndDelete

func (m *MockCollection) FindOneAndDelete(ctx context.Context, filter interface{}, opts ...*options.FindOneAndDeleteOptions) mongoifc.SingleResult

FindOneAndDelete mocks base method.

func (*MockCollection) FindOneAndReplace

func (m *MockCollection) FindOneAndReplace(ctx context.Context, filter, replacement interface{}, opts ...*options.FindOneAndReplaceOptions) mongoifc.SingleResult

FindOneAndReplace mocks base method.

func (*MockCollection) FindOneAndUpdate

func (m *MockCollection) FindOneAndUpdate(ctx context.Context, filter, update interface{}, opts ...*options.FindOneAndUpdateOptions) mongoifc.SingleResult

FindOneAndUpdate mocks base method.

func (*MockCollection) Indexes

func (m *MockCollection) Indexes() mongoifc.IndexView

Indexes mocks base method.

func (*MockCollection) InsertMany

func (m *MockCollection) InsertMany(ctx context.Context, documents []interface{}, opts ...*options.InsertManyOptions) (*mongo.InsertManyResult, error)

InsertMany mocks base method.

func (*MockCollection) InsertOne

func (m *MockCollection) InsertOne(ctx context.Context, document interface{}, opts ...*options.InsertOneOptions) (*mongo.InsertOneResult, error)

InsertOne mocks base method.

func (*MockCollection) Name

func (m *MockCollection) Name() string

Name mocks base method.

func (*MockCollection) ReplaceOne

func (m *MockCollection) ReplaceOne(ctx context.Context, filter, replacement interface{}, opts ...*options.ReplaceOptions) (*mongo.UpdateResult, error)

ReplaceOne mocks base method.

func (*MockCollection) UpdateByID

func (m *MockCollection) UpdateByID(ctx context.Context, id, update interface{}, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)

UpdateByID mocks base method.

func (*MockCollection) UpdateMany

func (m *MockCollection) UpdateMany(ctx context.Context, filter, update interface{}, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)

UpdateMany mocks base method.

func (*MockCollection) UpdateOne

func (m *MockCollection) UpdateOne(ctx context.Context, filter, update interface{}, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)

UpdateOne mocks base method.

func (*MockCollection) Watch

func (m *MockCollection) Watch(ctx context.Context, pipeline interface{}, opts ...*options.ChangeStreamOptions) (mongoifc.ChangeStream, error)

Watch mocks base method.

func (*MockCollection) WrappedCollection

func (m *MockCollection) WrappedCollection() *mongo.Collection

WrappedCollection mocks base method.

type MockCollectionMockRecorder

type MockCollectionMockRecorder struct {
	// contains filtered or unexported fields
}

MockCollectionMockRecorder is the mock recorder for MockCollection.

func (*MockCollectionMockRecorder) Aggregate

func (mr *MockCollectionMockRecorder) Aggregate(ctx, pipeline interface{}, opts ...interface{}) *gomock.Call

Aggregate indicates an expected call of Aggregate.

func (*MockCollectionMockRecorder) BulkWrite

func (mr *MockCollectionMockRecorder) BulkWrite(ctx, models interface{}, opts ...interface{}) *gomock.Call

BulkWrite indicates an expected call of BulkWrite.

func (*MockCollectionMockRecorder) Clone

func (mr *MockCollectionMockRecorder) Clone(opts ...interface{}) *gomock.Call

Clone indicates an expected call of Clone.

func (*MockCollectionMockRecorder) CountDocuments

func (mr *MockCollectionMockRecorder) CountDocuments(ctx, filter interface{}, opts ...interface{}) *gomock.Call

CountDocuments indicates an expected call of CountDocuments.

func (*MockCollectionMockRecorder) Database

func (mr *MockCollectionMockRecorder) Database() *gomock.Call

Database indicates an expected call of Database.

func (*MockCollectionMockRecorder) DeleteMany

func (mr *MockCollectionMockRecorder) DeleteMany(ctx, filter interface{}, opts ...interface{}) *gomock.Call

DeleteMany indicates an expected call of DeleteMany.

func (*MockCollectionMockRecorder) DeleteOne

func (mr *MockCollectionMockRecorder) DeleteOne(ctx, filter interface{}, opts ...interface{}) *gomock.Call

DeleteOne indicates an expected call of DeleteOne.

func (*MockCollectionMockRecorder) Distinct

func (mr *MockCollectionMockRecorder) Distinct(ctx, fieldName, filter interface{}, opts ...interface{}) *gomock.Call

Distinct indicates an expected call of Distinct.

func (*MockCollectionMockRecorder) Drop

func (mr *MockCollectionMockRecorder) Drop(ctx interface{}) *gomock.Call

Drop indicates an expected call of Drop.

func (*MockCollectionMockRecorder) EstimatedDocumentCount

func (mr *MockCollectionMockRecorder) EstimatedDocumentCount(ctx interface{}, opts ...interface{}) *gomock.Call

EstimatedDocumentCount indicates an expected call of EstimatedDocumentCount.

func (*MockCollectionMockRecorder) Find

func (mr *MockCollectionMockRecorder) Find(ctx, filter interface{}, opts ...interface{}) *gomock.Call

Find indicates an expected call of Find.

func (*MockCollectionMockRecorder) FindOne

func (mr *MockCollectionMockRecorder) FindOne(ctx, filter interface{}, opts ...interface{}) *gomock.Call

FindOne indicates an expected call of FindOne.

func (*MockCollectionMockRecorder) FindOneAndDelete

func (mr *MockCollectionMockRecorder) FindOneAndDelete(ctx, filter interface{}, opts ...interface{}) *gomock.Call

FindOneAndDelete indicates an expected call of FindOneAndDelete.

func (*MockCollectionMockRecorder) FindOneAndReplace

func (mr *MockCollectionMockRecorder) FindOneAndReplace(ctx, filter, replacement interface{}, opts ...interface{}) *gomock.Call

FindOneAndReplace indicates an expected call of FindOneAndReplace.

func (*MockCollectionMockRecorder) FindOneAndUpdate

func (mr *MockCollectionMockRecorder) FindOneAndUpdate(ctx, filter, update interface{}, opts ...interface{}) *gomock.Call

FindOneAndUpdate indicates an expected call of FindOneAndUpdate.

func (*MockCollectionMockRecorder) Indexes

func (mr *MockCollectionMockRecorder) Indexes() *gomock.Call

Indexes indicates an expected call of Indexes.

func (*MockCollectionMockRecorder) InsertMany

func (mr *MockCollectionMockRecorder) InsertMany(ctx, documents interface{}, opts ...interface{}) *gomock.Call

InsertMany indicates an expected call of InsertMany.

func (*MockCollectionMockRecorder) InsertOne

func (mr *MockCollectionMockRecorder) InsertOne(ctx, document interface{}, opts ...interface{}) *gomock.Call

InsertOne indicates an expected call of InsertOne.

func (*MockCollectionMockRecorder) Name

Name indicates an expected call of Name.

func (*MockCollectionMockRecorder) ReplaceOne

func (mr *MockCollectionMockRecorder) ReplaceOne(ctx, filter, replacement interface{}, opts ...interface{}) *gomock.Call

ReplaceOne indicates an expected call of ReplaceOne.

func (*MockCollectionMockRecorder) UpdateByID

func (mr *MockCollectionMockRecorder) UpdateByID(ctx, id, update interface{}, opts ...interface{}) *gomock.Call

UpdateByID indicates an expected call of UpdateByID.

func (*MockCollectionMockRecorder) UpdateMany

func (mr *MockCollectionMockRecorder) UpdateMany(ctx, filter, update interface{}, opts ...interface{}) *gomock.Call

UpdateMany indicates an expected call of UpdateMany.

func (*MockCollectionMockRecorder) UpdateOne

func (mr *MockCollectionMockRecorder) UpdateOne(ctx, filter, update interface{}, opts ...interface{}) *gomock.Call

UpdateOne indicates an expected call of UpdateOne.

func (*MockCollectionMockRecorder) Watch

func (mr *MockCollectionMockRecorder) Watch(ctx, pipeline interface{}, opts ...interface{}) *gomock.Call

Watch indicates an expected call of Watch.

func (*MockCollectionMockRecorder) WrappedCollection

func (mr *MockCollectionMockRecorder) WrappedCollection() *gomock.Call

WrappedCollection indicates an expected call of WrappedCollection.

type MockCursor

type MockCursor struct {
	// contains filtered or unexported fields
}

MockCursor is a mock of Cursor interface.

func NewMockCursor

func NewMockCursor(ctrl *gomock.Controller) *MockCursor

NewMockCursor creates a new mock instance.

func (*MockCursor) All

func (m *MockCursor) All(ctx context.Context, results interface{}) error

All mocks base method.

func (*MockCursor) Close

func (m *MockCursor) Close(ctx context.Context) error

Close mocks base method.

func (*MockCursor) Current

func (m *MockCursor) Current() bson.Raw

Current mocks base method.

func (*MockCursor) Decode

func (m *MockCursor) Decode(val interface{}) error

Decode mocks base method.

func (*MockCursor) EXPECT

func (m *MockCursor) EXPECT() *MockCursorMockRecorder

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

func (*MockCursor) Err

func (m *MockCursor) Err() error

Err mocks base method.

func (*MockCursor) ID

func (m *MockCursor) ID() int64

ID mocks base method.

func (*MockCursor) Next

func (m *MockCursor) Next(ctx context.Context) bool

Next mocks base method.

func (*MockCursor) RemainingBatchLength

func (m *MockCursor) RemainingBatchLength() int

RemainingBatchLength mocks base method.

func (*MockCursor) TryNext

func (m *MockCursor) TryNext(ctx context.Context) bool

TryNext mocks base method.

func (*MockCursor) WrappedCursor

func (m *MockCursor) WrappedCursor() *mongo.Cursor

WrappedCursor mocks base method.

type MockCursorMockRecorder

type MockCursorMockRecorder struct {
	// contains filtered or unexported fields
}

MockCursorMockRecorder is the mock recorder for MockCursor.

func (*MockCursorMockRecorder) All

func (mr *MockCursorMockRecorder) All(ctx, results interface{}) *gomock.Call

All indicates an expected call of All.

func (*MockCursorMockRecorder) Close

func (mr *MockCursorMockRecorder) Close(ctx interface{}) *gomock.Call

Close indicates an expected call of Close.

func (*MockCursorMockRecorder) Current

func (mr *MockCursorMockRecorder) Current() *gomock.Call

Current indicates an expected call of Current.

func (*MockCursorMockRecorder) Decode

func (mr *MockCursorMockRecorder) Decode(val interface{}) *gomock.Call

Decode indicates an expected call of Decode.

func (*MockCursorMockRecorder) Err

func (mr *MockCursorMockRecorder) Err() *gomock.Call

Err indicates an expected call of Err.

func (*MockCursorMockRecorder) ID

ID indicates an expected call of ID.

func (*MockCursorMockRecorder) Next

func (mr *MockCursorMockRecorder) Next(ctx interface{}) *gomock.Call

Next indicates an expected call of Next.

func (*MockCursorMockRecorder) RemainingBatchLength

func (mr *MockCursorMockRecorder) RemainingBatchLength() *gomock.Call

RemainingBatchLength indicates an expected call of RemainingBatchLength.

func (*MockCursorMockRecorder) TryNext

func (mr *MockCursorMockRecorder) TryNext(ctx interface{}) *gomock.Call

TryNext indicates an expected call of TryNext.

func (*MockCursorMockRecorder) WrappedCursor

func (mr *MockCursorMockRecorder) WrappedCursor() *gomock.Call

WrappedCursor indicates an expected call of WrappedCursor.

type MockDatabase

type MockDatabase struct {
	// contains filtered or unexported fields
}

MockDatabase is a mock of Database interface.

func NewMockDatabase

func NewMockDatabase(ctrl *gomock.Controller) *MockDatabase

NewMockDatabase creates a new mock instance.

func (*MockDatabase) Aggregate

func (m *MockDatabase) Aggregate(ctx context.Context, pipeline interface{}, opts ...*options.AggregateOptions) (mongoifc.Cursor, error)

Aggregate mocks base method.

func (*MockDatabase) Client

func (m *MockDatabase) Client() mongoifc.Client

Client mocks base method.

func (*MockDatabase) Collection

func (m *MockDatabase) Collection(name string, opts ...*options.CollectionOptions) mongoifc.Collection

Collection mocks base method.

func (*MockDatabase) CreateCollection

func (m *MockDatabase) CreateCollection(ctx context.Context, name string, opts ...*options.CreateCollectionOptions) error

CreateCollection mocks base method.

func (*MockDatabase) CreateView

func (m *MockDatabase) CreateView(ctx context.Context, viewName, viewOn string, pipeline interface{}, opts ...*options.CreateViewOptions) error

CreateView mocks base method.

func (*MockDatabase) Drop

func (m *MockDatabase) Drop(ctx context.Context) error

Drop mocks base method.

func (*MockDatabase) EXPECT

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

func (*MockDatabase) ListCollectionNames

func (m *MockDatabase) ListCollectionNames(ctx context.Context, filter interface{}, opts ...*options.ListCollectionsOptions) ([]string, error)

ListCollectionNames mocks base method.

func (*MockDatabase) ListCollectionSpecifications

func (m *MockDatabase) ListCollectionSpecifications(ctx context.Context, filter interface{}, opts ...*options.ListCollectionsOptions) ([]*mongo.CollectionSpecification, error)

ListCollectionSpecifications mocks base method.

func (*MockDatabase) ListCollections

func (m *MockDatabase) ListCollections(ctx context.Context, filter interface{}, opts ...*options.ListCollectionsOptions) (mongoifc.Cursor, error)

ListCollections mocks base method.

func (*MockDatabase) Name

func (m *MockDatabase) Name() string

Name mocks base method.

func (*MockDatabase) ReadConcern

func (m *MockDatabase) ReadConcern() *readconcern.ReadConcern

ReadConcern mocks base method.

func (*MockDatabase) ReadPreference

func (m *MockDatabase) ReadPreference() *readpref.ReadPref

ReadPreference mocks base method.

func (*MockDatabase) RunCommand

func (m *MockDatabase) RunCommand(ctx context.Context, runCommand interface{}, opts ...*options.RunCmdOptions) mongoifc.SingleResult

RunCommand mocks base method.

func (*MockDatabase) RunCommandCursor

func (m *MockDatabase) RunCommandCursor(ctx context.Context, runCommand interface{}, opts ...*options.RunCmdOptions) (mongoifc.Cursor, error)

RunCommandCursor mocks base method.

func (*MockDatabase) Watch

func (m *MockDatabase) Watch(ctx context.Context, pipeline interface{}, opts ...*options.ChangeStreamOptions) (mongoifc.ChangeStream, error)

Watch mocks base method.

func (*MockDatabase) WrappedDatabase

func (m *MockDatabase) WrappedDatabase() *mongo.Database

WrappedDatabase mocks base method.

func (*MockDatabase) WriteConcern

func (m *MockDatabase) WriteConcern() *writeconcern.WriteConcern

WriteConcern mocks base method.

type MockDatabaseMockRecorder

type MockDatabaseMockRecorder struct {
	// contains filtered or unexported fields
}

MockDatabaseMockRecorder is the mock recorder for MockDatabase.

func (*MockDatabaseMockRecorder) Aggregate

func (mr *MockDatabaseMockRecorder) Aggregate(ctx, pipeline interface{}, opts ...interface{}) *gomock.Call

Aggregate indicates an expected call of Aggregate.

func (*MockDatabaseMockRecorder) Client

func (mr *MockDatabaseMockRecorder) Client() *gomock.Call

Client indicates an expected call of Client.

func (*MockDatabaseMockRecorder) Collection

func (mr *MockDatabaseMockRecorder) Collection(name interface{}, opts ...interface{}) *gomock.Call

Collection indicates an expected call of Collection.

func (*MockDatabaseMockRecorder) CreateCollection

func (mr *MockDatabaseMockRecorder) CreateCollection(ctx, name interface{}, opts ...interface{}) *gomock.Call

CreateCollection indicates an expected call of CreateCollection.

func (*MockDatabaseMockRecorder) CreateView

func (mr *MockDatabaseMockRecorder) CreateView(ctx, viewName, viewOn, pipeline interface{}, opts ...interface{}) *gomock.Call

CreateView indicates an expected call of CreateView.

func (*MockDatabaseMockRecorder) Drop

func (mr *MockDatabaseMockRecorder) Drop(ctx interface{}) *gomock.Call

Drop indicates an expected call of Drop.

func (*MockDatabaseMockRecorder) ListCollectionNames

func (mr *MockDatabaseMockRecorder) ListCollectionNames(ctx, filter interface{}, opts ...interface{}) *gomock.Call

ListCollectionNames indicates an expected call of ListCollectionNames.

func (*MockDatabaseMockRecorder) ListCollectionSpecifications

func (mr *MockDatabaseMockRecorder) ListCollectionSpecifications(ctx, filter interface{}, opts ...interface{}) *gomock.Call

ListCollectionSpecifications indicates an expected call of ListCollectionSpecifications.

func (*MockDatabaseMockRecorder) ListCollections

func (mr *MockDatabaseMockRecorder) ListCollections(ctx, filter interface{}, opts ...interface{}) *gomock.Call

ListCollections indicates an expected call of ListCollections.

func (*MockDatabaseMockRecorder) Name

func (mr *MockDatabaseMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name.

func (*MockDatabaseMockRecorder) ReadConcern

func (mr *MockDatabaseMockRecorder) ReadConcern() *gomock.Call

ReadConcern indicates an expected call of ReadConcern.

func (*MockDatabaseMockRecorder) ReadPreference

func (mr *MockDatabaseMockRecorder) ReadPreference() *gomock.Call

ReadPreference indicates an expected call of ReadPreference.

func (*MockDatabaseMockRecorder) RunCommand

func (mr *MockDatabaseMockRecorder) RunCommand(ctx, runCommand interface{}, opts ...interface{}) *gomock.Call

RunCommand indicates an expected call of RunCommand.

func (*MockDatabaseMockRecorder) RunCommandCursor

func (mr *MockDatabaseMockRecorder) RunCommandCursor(ctx, runCommand interface{}, opts ...interface{}) *gomock.Call

RunCommandCursor indicates an expected call of RunCommandCursor.

func (*MockDatabaseMockRecorder) Watch

func (mr *MockDatabaseMockRecorder) Watch(ctx, pipeline interface{}, opts ...interface{}) *gomock.Call

Watch indicates an expected call of Watch.

func (*MockDatabaseMockRecorder) WrappedDatabase

func (mr *MockDatabaseMockRecorder) WrappedDatabase() *gomock.Call

WrappedDatabase indicates an expected call of WrappedDatabase.

func (*MockDatabaseMockRecorder) WriteConcern

func (mr *MockDatabaseMockRecorder) WriteConcern() *gomock.Call

WriteConcern indicates an expected call of WriteConcern.

type MockIndexView

type MockIndexView struct {
	// contains filtered or unexported fields
}

MockIndexView is a mock of IndexView interface.

func NewMockIndexView

func NewMockIndexView(ctrl *gomock.Controller) *MockIndexView

NewMockIndexView creates a new mock instance.

func (*MockIndexView) CreateMany

func (m *MockIndexView) CreateMany(ctx context.Context, models []mongo.IndexModel, opts ...*options.CreateIndexesOptions) ([]string, error)

CreateMany mocks base method.

func (*MockIndexView) CreateOne

func (m *MockIndexView) CreateOne(ctx context.Context, model mongo.IndexModel, opts ...*options.CreateIndexesOptions) (string, error)

CreateOne mocks base method.

func (*MockIndexView) DropAll

func (m *MockIndexView) DropAll(ctx context.Context, opts ...*options.DropIndexesOptions) (bson.Raw, error)

DropAll mocks base method.

func (*MockIndexView) DropOne

func (m *MockIndexView) DropOne(ctx context.Context, name string, opts ...*options.DropIndexesOptions) (bson.Raw, error)

DropOne mocks base method.

func (*MockIndexView) EXPECT

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

func (*MockIndexView) List

List mocks base method.

func (*MockIndexView) ListSpecifications

func (m *MockIndexView) ListSpecifications(ctx context.Context, opts ...*options.ListIndexesOptions) ([]*mongo.IndexSpecification, error)

ListSpecifications mocks base method.

func (*MockIndexView) WrappedIndexView

func (m *MockIndexView) WrappedIndexView() *mongo.IndexView

WrappedIndexView mocks base method.

type MockIndexViewMockRecorder

type MockIndexViewMockRecorder struct {
	// contains filtered or unexported fields
}

MockIndexViewMockRecorder is the mock recorder for MockIndexView.

func (*MockIndexViewMockRecorder) CreateMany

func (mr *MockIndexViewMockRecorder) CreateMany(ctx, models interface{}, opts ...interface{}) *gomock.Call

CreateMany indicates an expected call of CreateMany.

func (*MockIndexViewMockRecorder) CreateOne

func (mr *MockIndexViewMockRecorder) CreateOne(ctx, model interface{}, opts ...interface{}) *gomock.Call

CreateOne indicates an expected call of CreateOne.

func (*MockIndexViewMockRecorder) DropAll

func (mr *MockIndexViewMockRecorder) DropAll(ctx interface{}, opts ...interface{}) *gomock.Call

DropAll indicates an expected call of DropAll.

func (*MockIndexViewMockRecorder) DropOne

func (mr *MockIndexViewMockRecorder) DropOne(ctx, name interface{}, opts ...interface{}) *gomock.Call

DropOne indicates an expected call of DropOne.

func (*MockIndexViewMockRecorder) List

func (mr *MockIndexViewMockRecorder) List(ctx interface{}, opts ...interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockIndexViewMockRecorder) ListSpecifications

func (mr *MockIndexViewMockRecorder) ListSpecifications(ctx interface{}, opts ...interface{}) *gomock.Call

ListSpecifications indicates an expected call of ListSpecifications.

func (*MockIndexViewMockRecorder) WrappedIndexView

func (mr *MockIndexViewMockRecorder) WrappedIndexView() *gomock.Call

WrappedIndexView indicates an expected call of WrappedIndexView.

type MockSession

type MockSession struct {
	// contains filtered or unexported fields
}

MockSession is a mock of Session interface.

func NewMockSession

func NewMockSession(ctrl *gomock.Controller) *MockSession

NewMockSession creates a new mock instance.

func (*MockSession) AbortTransaction

func (m *MockSession) AbortTransaction(ctx context.Context) error

AbortTransaction mocks base method.

func (*MockSession) AdvanceClusterTime

func (m *MockSession) AdvanceClusterTime(arg0 bson.Raw) error

AdvanceClusterTime mocks base method.

func (*MockSession) AdvanceOperationTime

func (m *MockSession) AdvanceOperationTime(arg0 *primitive.Timestamp) error

AdvanceOperationTime mocks base method.

func (*MockSession) Client

func (m *MockSession) Client() mongoifc.Client

Client mocks base method.

func (*MockSession) ClusterTime

func (m *MockSession) ClusterTime() bson.Raw

ClusterTime mocks base method.

func (*MockSession) CommitTransaction

func (m *MockSession) CommitTransaction(ctx context.Context) error

CommitTransaction mocks base method.

func (*MockSession) EXPECT

func (m *MockSession) EXPECT() *MockSessionMockRecorder

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

func (*MockSession) EndSession

func (m *MockSession) EndSession(ctx context.Context)

EndSession mocks base method.

func (*MockSession) ID

func (m *MockSession) ID() bson.Raw

ID mocks base method.

func (*MockSession) OperationTime

func (m *MockSession) OperationTime() *primitive.Timestamp

OperationTime mocks base method.

func (*MockSession) StartTransaction

func (m *MockSession) StartTransaction(opts ...*options.TransactionOptions) error

StartTransaction mocks base method.

func (*MockSession) WithTransaction

func (m *MockSession) WithTransaction(ctx context.Context, fn func(mongo.SessionContext) (interface{}, error), opts ...*options.TransactionOptions) (interface{}, error)

WithTransaction mocks base method.

func (*MockSession) WrappedSession

func (m *MockSession) WrappedSession() mongo.Session

WrappedSession mocks base method.

type MockSessionMockRecorder

type MockSessionMockRecorder struct {
	// contains filtered or unexported fields
}

MockSessionMockRecorder is the mock recorder for MockSession.

func (*MockSessionMockRecorder) AbortTransaction

func (mr *MockSessionMockRecorder) AbortTransaction(ctx interface{}) *gomock.Call

AbortTransaction indicates an expected call of AbortTransaction.

func (*MockSessionMockRecorder) AdvanceClusterTime

func (mr *MockSessionMockRecorder) AdvanceClusterTime(arg0 interface{}) *gomock.Call

AdvanceClusterTime indicates an expected call of AdvanceClusterTime.

func (*MockSessionMockRecorder) AdvanceOperationTime

func (mr *MockSessionMockRecorder) AdvanceOperationTime(arg0 interface{}) *gomock.Call

AdvanceOperationTime indicates an expected call of AdvanceOperationTime.

func (*MockSessionMockRecorder) Client

func (mr *MockSessionMockRecorder) Client() *gomock.Call

Client indicates an expected call of Client.

func (*MockSessionMockRecorder) ClusterTime

func (mr *MockSessionMockRecorder) ClusterTime() *gomock.Call

ClusterTime indicates an expected call of ClusterTime.

func (*MockSessionMockRecorder) CommitTransaction

func (mr *MockSessionMockRecorder) CommitTransaction(ctx interface{}) *gomock.Call

CommitTransaction indicates an expected call of CommitTransaction.

func (*MockSessionMockRecorder) EndSession

func (mr *MockSessionMockRecorder) EndSession(ctx interface{}) *gomock.Call

EndSession indicates an expected call of EndSession.

func (*MockSessionMockRecorder) ID

ID indicates an expected call of ID.

func (*MockSessionMockRecorder) OperationTime

func (mr *MockSessionMockRecorder) OperationTime() *gomock.Call

OperationTime indicates an expected call of OperationTime.

func (*MockSessionMockRecorder) StartTransaction

func (mr *MockSessionMockRecorder) StartTransaction(opts ...interface{}) *gomock.Call

StartTransaction indicates an expected call of StartTransaction.

func (*MockSessionMockRecorder) WithTransaction

func (mr *MockSessionMockRecorder) WithTransaction(ctx, fn interface{}, opts ...interface{}) *gomock.Call

WithTransaction indicates an expected call of WithTransaction.

func (*MockSessionMockRecorder) WrappedSession

func (mr *MockSessionMockRecorder) WrappedSession() *gomock.Call

WrappedSession indicates an expected call of WrappedSession.

type MockSingleResult

type MockSingleResult struct {
	// contains filtered or unexported fields
}

MockSingleResult is a mock of SingleResult interface.

func NewMockSingleResult

func NewMockSingleResult(ctrl *gomock.Controller) *MockSingleResult

NewMockSingleResult creates a new mock instance.

func (*MockSingleResult) Decode

func (m *MockSingleResult) Decode(v interface{}) error

Decode mocks base method.

func (*MockSingleResult) DecodeBytes

func (m *MockSingleResult) DecodeBytes() (bson.Raw, error)

DecodeBytes mocks base method.

func (*MockSingleResult) EXPECT

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

func (*MockSingleResult) Err

func (m *MockSingleResult) Err() error

Err mocks base method.

func (*MockSingleResult) WrappedSingleResult

func (m *MockSingleResult) WrappedSingleResult() *mongo.SingleResult

WrappedSingleResult mocks base method.

type MockSingleResultMockRecorder

type MockSingleResultMockRecorder struct {
	// contains filtered or unexported fields
}

MockSingleResultMockRecorder is the mock recorder for MockSingleResult.

func (*MockSingleResultMockRecorder) Decode

func (mr *MockSingleResultMockRecorder) Decode(v interface{}) *gomock.Call

Decode indicates an expected call of Decode.

func (*MockSingleResultMockRecorder) DecodeBytes

func (mr *MockSingleResultMockRecorder) DecodeBytes() *gomock.Call

DecodeBytes indicates an expected call of DecodeBytes.

func (*MockSingleResultMockRecorder) Err

Err indicates an expected call of Err.

func (*MockSingleResultMockRecorder) WrappedSingleResult

func (mr *MockSingleResultMockRecorder) WrappedSingleResult() *gomock.Call

WrappedSingleResult indicates an expected call of WrappedSingleResult.

Jump to

Keyboard shortcuts

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