mocks

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

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(arg0 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(arg0 any) 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(arg0 context.Context) bool

Next mocks base method.

func (*MockChangeStream) ResumeToken

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

ResumeToken mocks base method.

func (*MockChangeStream) SetBatchSize added in v1.13.0

func (m *MockChangeStream) SetBatchSize(arg0 int32)

SetBatchSize mocks base method.

func (*MockChangeStream) TryNext

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

TryNext 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(arg0 any) *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(arg0 any) *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(arg0 any) *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) SetBatchSize added in v1.13.0

func (mr *MockChangeStreamMockRecorder) SetBatchSize(arg0 any) *gomock.Call

SetBatchSize indicates an expected call of SetBatchSize.

func (*MockChangeStreamMockRecorder) TryNext

func (mr *MockChangeStreamMockRecorder) TryNext(arg0 any) *gomock.Call

TryNext indicates an expected call of TryNext.

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(arg0 context.Context) error

Connect mocks base method.

func (*MockClient) Database

func (m *MockClient) Database(arg0 string, arg1 ...*options.DatabaseOptions) mongoifc.Database

Database mocks base method.

func (*MockClient) Disconnect

func (m *MockClient) Disconnect(arg0 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(arg0 context.Context, arg1 any, arg2 ...*options.ListDatabasesOptions) ([]string, error)

ListDatabaseNames mocks base method.

func (*MockClient) ListDatabases

func (m *MockClient) ListDatabases(arg0 context.Context, arg1 any, arg2 ...*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(arg0 context.Context, arg1 *readpref.ReadPref) error

Ping mocks base method.

func (*MockClient) StartSession

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

StartSession mocks base method.

func (*MockClient) Timeout added in v1.11.1

func (m *MockClient) Timeout() *time.Duration

Timeout mocks base method.

func (*MockClient) UseSession

func (m *MockClient) UseSession(arg0 context.Context, arg1 func(mongoifc.SessionContext) error) error

UseSession mocks base method.

func (*MockClient) UseSessionWithOptions

func (m *MockClient) UseSessionWithOptions(arg0 context.Context, arg1 *options.SessionOptions, arg2 func(mongoifc.SessionContext) error) error

UseSessionWithOptions mocks base method.

func (*MockClient) Watch

Watch mocks base method.

type MockClientEncryption added in v1.13.0

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

MockClientEncryption is a mock of ClientEncryption interface.

func NewMockClientEncryption added in v1.13.0

func NewMockClientEncryption(ctrl *gomock.Controller) *MockClientEncryption

NewMockClientEncryption creates a new mock instance.

func (*MockClientEncryption) AddKeyAltName added in v1.13.0

func (m *MockClientEncryption) AddKeyAltName(arg0 context.Context, arg1 primitive.Binary, arg2 string) mongoifc.SingleResult

AddKeyAltName mocks base method.

func (*MockClientEncryption) Close added in v1.13.0

func (m *MockClientEncryption) Close(arg0 context.Context) error

Close mocks base method.

func (*MockClientEncryption) CreateDataKey added in v1.13.0

func (m *MockClientEncryption) CreateDataKey(arg0 context.Context, arg1 string, arg2 ...*options.DataKeyOptions) (primitive.Binary, error)

CreateDataKey mocks base method.

func (*MockClientEncryption) CreateEncryptedCollection added in v1.13.0

func (m *MockClientEncryption) CreateEncryptedCollection(arg0 context.Context, arg1 mongoifc.Database, arg2 string, arg3 *options.CreateCollectionOptions, arg4 string, arg5 any) (mongoifc.Collection, primitive.M, error)

CreateEncryptedCollection mocks base method.

func (*MockClientEncryption) Decrypt added in v1.13.0

Decrypt mocks base method.

func (*MockClientEncryption) DeleteKey added in v1.13.0

DeleteKey mocks base method.

func (*MockClientEncryption) EXPECT added in v1.13.0

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

func (*MockClientEncryption) Encrypt added in v1.13.0

Encrypt mocks base method.

func (*MockClientEncryption) EncryptExpression added in v1.13.0

func (m *MockClientEncryption) EncryptExpression(arg0 context.Context, arg1, arg2 any, arg3 ...*options.EncryptOptions) error

EncryptExpression mocks base method.

func (*MockClientEncryption) GetKey added in v1.13.0

GetKey mocks base method.

func (*MockClientEncryption) GetKeyByAltName added in v1.13.0

func (m *MockClientEncryption) GetKeyByAltName(arg0 context.Context, arg1 string) mongoifc.SingleResult

GetKeyByAltName mocks base method.

func (*MockClientEncryption) GetKeys added in v1.13.0

GetKeys mocks base method.

func (*MockClientEncryption) RemoveKeyAltName added in v1.13.0

func (m *MockClientEncryption) RemoveKeyAltName(arg0 context.Context, arg1 primitive.Binary, arg2 string) mongoifc.SingleResult

RemoveKeyAltName mocks base method.

func (*MockClientEncryption) RewrapManyDataKey added in v1.13.0

RewrapManyDataKey mocks base method.

type MockClientEncryptionMockRecorder added in v1.13.0

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

MockClientEncryptionMockRecorder is the mock recorder for MockClientEncryption.

func (*MockClientEncryptionMockRecorder) AddKeyAltName added in v1.13.0

func (mr *MockClientEncryptionMockRecorder) AddKeyAltName(arg0, arg1, arg2 any) *gomock.Call

AddKeyAltName indicates an expected call of AddKeyAltName.

func (*MockClientEncryptionMockRecorder) Close added in v1.13.0

Close indicates an expected call of Close.

func (*MockClientEncryptionMockRecorder) CreateDataKey added in v1.13.0

func (mr *MockClientEncryptionMockRecorder) CreateDataKey(arg0, arg1 any, arg2 ...any) *gomock.Call

CreateDataKey indicates an expected call of CreateDataKey.

func (*MockClientEncryptionMockRecorder) CreateEncryptedCollection added in v1.13.0

func (mr *MockClientEncryptionMockRecorder) CreateEncryptedCollection(arg0, arg1, arg2, arg3, arg4, arg5 any) *gomock.Call

CreateEncryptedCollection indicates an expected call of CreateEncryptedCollection.

func (*MockClientEncryptionMockRecorder) Decrypt added in v1.13.0

func (mr *MockClientEncryptionMockRecorder) Decrypt(arg0, arg1 any) *gomock.Call

Decrypt indicates an expected call of Decrypt.

func (*MockClientEncryptionMockRecorder) DeleteKey added in v1.13.0

func (mr *MockClientEncryptionMockRecorder) DeleteKey(arg0, arg1 any) *gomock.Call

DeleteKey indicates an expected call of DeleteKey.

func (*MockClientEncryptionMockRecorder) Encrypt added in v1.13.0

func (mr *MockClientEncryptionMockRecorder) Encrypt(arg0, arg1 any, arg2 ...any) *gomock.Call

Encrypt indicates an expected call of Encrypt.

func (*MockClientEncryptionMockRecorder) EncryptExpression added in v1.13.0

func (mr *MockClientEncryptionMockRecorder) EncryptExpression(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call

EncryptExpression indicates an expected call of EncryptExpression.

func (*MockClientEncryptionMockRecorder) GetKey added in v1.13.0

func (mr *MockClientEncryptionMockRecorder) GetKey(arg0, arg1 any) *gomock.Call

GetKey indicates an expected call of GetKey.

func (*MockClientEncryptionMockRecorder) GetKeyByAltName added in v1.13.0

func (mr *MockClientEncryptionMockRecorder) GetKeyByAltName(arg0, arg1 any) *gomock.Call

GetKeyByAltName indicates an expected call of GetKeyByAltName.

func (*MockClientEncryptionMockRecorder) GetKeys added in v1.13.0

func (mr *MockClientEncryptionMockRecorder) GetKeys(arg0 any) *gomock.Call

GetKeys indicates an expected call of GetKeys.

func (*MockClientEncryptionMockRecorder) RemoveKeyAltName added in v1.13.0

func (mr *MockClientEncryptionMockRecorder) RemoveKeyAltName(arg0, arg1, arg2 any) *gomock.Call

RemoveKeyAltName indicates an expected call of RemoveKeyAltName.

func (*MockClientEncryptionMockRecorder) RewrapManyDataKey added in v1.13.0

func (mr *MockClientEncryptionMockRecorder) RewrapManyDataKey(arg0, arg1 any, arg2 ...any) *gomock.Call

RewrapManyDataKey indicates an expected call of RewrapManyDataKey.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) Connect

func (mr *MockClientMockRecorder) Connect(arg0 any) *gomock.Call

Connect indicates an expected call of Connect.

func (*MockClientMockRecorder) Database

func (mr *MockClientMockRecorder) Database(arg0 any, arg1 ...any) *gomock.Call

Database indicates an expected call of Database.

func (*MockClientMockRecorder) Disconnect

func (mr *MockClientMockRecorder) Disconnect(arg0 any) *gomock.Call

Disconnect indicates an expected call of Disconnect.

func (*MockClientMockRecorder) ListDatabaseNames

func (mr *MockClientMockRecorder) ListDatabaseNames(arg0, arg1 any, arg2 ...any) *gomock.Call

ListDatabaseNames indicates an expected call of ListDatabaseNames.

func (*MockClientMockRecorder) ListDatabases

func (mr *MockClientMockRecorder) ListDatabases(arg0, arg1 any, arg2 ...any) *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(arg0, arg1 any) *gomock.Call

Ping indicates an expected call of Ping.

func (*MockClientMockRecorder) StartSession

func (mr *MockClientMockRecorder) StartSession(arg0 ...any) *gomock.Call

StartSession indicates an expected call of StartSession.

func (*MockClientMockRecorder) Timeout added in v1.11.1

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

Timeout indicates an expected call of Timeout.

func (*MockClientMockRecorder) UseSession

func (mr *MockClientMockRecorder) UseSession(arg0, arg1 any) *gomock.Call

UseSession indicates an expected call of UseSession.

func (*MockClientMockRecorder) UseSessionWithOptions

func (mr *MockClientMockRecorder) UseSessionWithOptions(arg0, arg1, arg2 any) *gomock.Call

UseSessionWithOptions indicates an expected call of UseSessionWithOptions.

func (*MockClientMockRecorder) Watch

func (mr *MockClientMockRecorder) Watch(arg0, arg1 any, arg2 ...any) *gomock.Call

Watch indicates an expected call of Watch.

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(arg0 context.Context, arg1 any, arg2 ...*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(arg0 context.Context, arg1 any, arg2 ...*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(arg0 context.Context, arg1 any, arg2 ...*options.DeleteOptions) (*mongo.DeleteResult, error)

DeleteMany mocks base method.

func (*MockCollection) DeleteOne

func (m *MockCollection) DeleteOne(arg0 context.Context, arg1 any, arg2 ...*options.DeleteOptions) (*mongo.DeleteResult, error)

DeleteOne mocks base method.

func (*MockCollection) Distinct

func (m *MockCollection) Distinct(arg0 context.Context, arg1 string, arg2 any, arg3 ...*options.DistinctOptions) ([]any, error)

Distinct mocks base method.

func (*MockCollection) Drop

func (m *MockCollection) Drop(arg0 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(arg0 context.Context, arg1 ...*options.EstimatedDocumentCountOptions) (int64, error)

EstimatedDocumentCount mocks base method.

func (*MockCollection) Find

func (m *MockCollection) Find(arg0 context.Context, arg1 any, arg2 ...*options.FindOptions) (mongoifc.Cursor, error)

Find mocks base method.

func (*MockCollection) FindOne

func (m *MockCollection) FindOne(arg0 context.Context, arg1 any, arg2 ...*options.FindOneOptions) mongoifc.SingleResult

FindOne mocks base method.

func (*MockCollection) FindOneAndDelete

func (m *MockCollection) FindOneAndDelete(arg0 context.Context, arg1 any, arg2 ...*options.FindOneAndDeleteOptions) mongoifc.SingleResult

FindOneAndDelete mocks base method.

func (*MockCollection) FindOneAndReplace

func (m *MockCollection) FindOneAndReplace(arg0 context.Context, arg1, arg2 any, arg3 ...*options.FindOneAndReplaceOptions) mongoifc.SingleResult

FindOneAndReplace mocks base method.

func (*MockCollection) FindOneAndUpdate

func (m *MockCollection) FindOneAndUpdate(arg0 context.Context, arg1, arg2 any, arg3 ...*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(arg0 context.Context, arg1 []any, arg2 ...*options.InsertManyOptions) (*mongo.InsertManyResult, error)

InsertMany mocks base method.

func (*MockCollection) InsertOne

func (m *MockCollection) InsertOne(arg0 context.Context, arg1 any, arg2 ...*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(arg0 context.Context, arg1, arg2 any, arg3 ...*options.ReplaceOptions) (*mongo.UpdateResult, error)

ReplaceOne mocks base method.

func (*MockCollection) SearchIndexes added in v1.13.0

func (m *MockCollection) SearchIndexes() mongoifc.SearchIndexView

SearchIndexes mocks base method.

func (*MockCollection) UpdateByID

func (m *MockCollection) UpdateByID(arg0 context.Context, arg1, arg2 any, arg3 ...*options.UpdateOptions) (*mongo.UpdateResult, error)

UpdateByID mocks base method.

func (*MockCollection) UpdateMany

func (m *MockCollection) UpdateMany(arg0 context.Context, arg1, arg2 any, arg3 ...*options.UpdateOptions) (*mongo.UpdateResult, error)

UpdateMany mocks base method.

func (*MockCollection) UpdateOne

func (m *MockCollection) UpdateOne(arg0 context.Context, arg1, arg2 any, arg3 ...*options.UpdateOptions) (*mongo.UpdateResult, error)

UpdateOne mocks base method.

func (*MockCollection) Watch

Watch 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(arg0, arg1 any, arg2 ...any) *gomock.Call

Aggregate indicates an expected call of Aggregate.

func (*MockCollectionMockRecorder) BulkWrite

func (mr *MockCollectionMockRecorder) BulkWrite(arg0, arg1 any, arg2 ...any) *gomock.Call

BulkWrite indicates an expected call of BulkWrite.

func (*MockCollectionMockRecorder) Clone

func (mr *MockCollectionMockRecorder) Clone(arg0 ...any) *gomock.Call

Clone indicates an expected call of Clone.

func (*MockCollectionMockRecorder) CountDocuments

func (mr *MockCollectionMockRecorder) CountDocuments(arg0, arg1 any, arg2 ...any) *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(arg0, arg1 any, arg2 ...any) *gomock.Call

DeleteMany indicates an expected call of DeleteMany.

func (*MockCollectionMockRecorder) DeleteOne

func (mr *MockCollectionMockRecorder) DeleteOne(arg0, arg1 any, arg2 ...any) *gomock.Call

DeleteOne indicates an expected call of DeleteOne.

func (*MockCollectionMockRecorder) Distinct

func (mr *MockCollectionMockRecorder) Distinct(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call

Distinct indicates an expected call of Distinct.

func (*MockCollectionMockRecorder) Drop

func (mr *MockCollectionMockRecorder) Drop(arg0 any) *gomock.Call

Drop indicates an expected call of Drop.

func (*MockCollectionMockRecorder) EstimatedDocumentCount

func (mr *MockCollectionMockRecorder) EstimatedDocumentCount(arg0 any, arg1 ...any) *gomock.Call

EstimatedDocumentCount indicates an expected call of EstimatedDocumentCount.

func (*MockCollectionMockRecorder) Find

func (mr *MockCollectionMockRecorder) Find(arg0, arg1 any, arg2 ...any) *gomock.Call

Find indicates an expected call of Find.

func (*MockCollectionMockRecorder) FindOne

func (mr *MockCollectionMockRecorder) FindOne(arg0, arg1 any, arg2 ...any) *gomock.Call

FindOne indicates an expected call of FindOne.

func (*MockCollectionMockRecorder) FindOneAndDelete

func (mr *MockCollectionMockRecorder) FindOneAndDelete(arg0, arg1 any, arg2 ...any) *gomock.Call

FindOneAndDelete indicates an expected call of FindOneAndDelete.

func (*MockCollectionMockRecorder) FindOneAndReplace

func (mr *MockCollectionMockRecorder) FindOneAndReplace(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call

FindOneAndReplace indicates an expected call of FindOneAndReplace.

func (*MockCollectionMockRecorder) FindOneAndUpdate

func (mr *MockCollectionMockRecorder) FindOneAndUpdate(arg0, arg1, arg2 any, arg3 ...any) *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(arg0, arg1 any, arg2 ...any) *gomock.Call

InsertMany indicates an expected call of InsertMany.

func (*MockCollectionMockRecorder) InsertOne

func (mr *MockCollectionMockRecorder) InsertOne(arg0, arg1 any, arg2 ...any) *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(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call

ReplaceOne indicates an expected call of ReplaceOne.

func (*MockCollectionMockRecorder) SearchIndexes added in v1.13.0

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

SearchIndexes indicates an expected call of SearchIndexes.

func (*MockCollectionMockRecorder) UpdateByID

func (mr *MockCollectionMockRecorder) UpdateByID(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call

UpdateByID indicates an expected call of UpdateByID.

func (*MockCollectionMockRecorder) UpdateMany

func (mr *MockCollectionMockRecorder) UpdateMany(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call

UpdateMany indicates an expected call of UpdateMany.

func (*MockCollectionMockRecorder) UpdateOne

func (mr *MockCollectionMockRecorder) UpdateOne(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call

UpdateOne indicates an expected call of UpdateOne.

func (*MockCollectionMockRecorder) Watch

func (mr *MockCollectionMockRecorder) Watch(arg0, arg1 any, arg2 ...any) *gomock.Call

Watch indicates an expected call of Watch.

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(arg0 context.Context, arg1 any) error

All mocks base method.

func (*MockCursor) Close

func (m *MockCursor) Close(arg0 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(arg0 any) 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(arg0 context.Context) bool

Next mocks base method.

func (*MockCursor) RemainingBatchLength

func (m *MockCursor) RemainingBatchLength() int

RemainingBatchLength mocks base method.

func (*MockCursor) SetBatchSize added in v1.13.0

func (m *MockCursor) SetBatchSize(arg0 int32)

SetBatchSize mocks base method.

func (*MockCursor) SetComment added in v1.13.0

func (m *MockCursor) SetComment(arg0 any)

SetComment mocks base method.

func (*MockCursor) SetMaxTime added in v1.13.0

func (m *MockCursor) SetMaxTime(arg0 time.Duration)

SetMaxTime mocks base method.

func (*MockCursor) TryNext

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

TryNext 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(arg0, arg1 any) *gomock.Call

All indicates an expected call of All.

func (*MockCursorMockRecorder) Close

func (mr *MockCursorMockRecorder) Close(arg0 any) *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(arg0 any) *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(arg0 any) *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) SetBatchSize added in v1.13.0

func (mr *MockCursorMockRecorder) SetBatchSize(arg0 any) *gomock.Call

SetBatchSize indicates an expected call of SetBatchSize.

func (*MockCursorMockRecorder) SetComment added in v1.13.0

func (mr *MockCursorMockRecorder) SetComment(arg0 any) *gomock.Call

SetComment indicates an expected call of SetComment.

func (*MockCursorMockRecorder) SetMaxTime added in v1.13.0

func (mr *MockCursorMockRecorder) SetMaxTime(arg0 any) *gomock.Call

SetMaxTime indicates an expected call of SetMaxTime.

func (*MockCursorMockRecorder) TryNext

func (mr *MockCursorMockRecorder) TryNext(arg0 any) *gomock.Call

TryNext indicates an expected call of TryNext.

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(arg0 context.Context, arg1 any, arg2 ...*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(arg0 string, arg1 ...*options.CollectionOptions) mongoifc.Collection

Collection mocks base method.

func (*MockDatabase) CreateCollection

func (m *MockDatabase) CreateCollection(arg0 context.Context, arg1 string, arg2 ...*options.CreateCollectionOptions) error

CreateCollection mocks base method.

func (*MockDatabase) CreateView

func (m *MockDatabase) CreateView(arg0 context.Context, arg1, arg2 string, arg3 any, arg4 ...*options.CreateViewOptions) error

CreateView mocks base method.

func (*MockDatabase) Drop

func (m *MockDatabase) Drop(arg0 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(arg0 context.Context, arg1 any, arg2 ...*options.ListCollectionsOptions) ([]string, error)

ListCollectionNames mocks base method.

func (*MockDatabase) ListCollectionSpecifications

func (m *MockDatabase) ListCollectionSpecifications(arg0 context.Context, arg1 any, arg2 ...*options.ListCollectionsOptions) ([]*mongo.CollectionSpecification, error)

ListCollectionSpecifications mocks base method.

func (*MockDatabase) ListCollections

func (m *MockDatabase) ListCollections(arg0 context.Context, arg1 any, arg2 ...*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(arg0 context.Context, arg1 any, arg2 ...*options.RunCmdOptions) mongoifc.SingleResult

RunCommand mocks base method.

func (*MockDatabase) RunCommandCursor

func (m *MockDatabase) RunCommandCursor(arg0 context.Context, arg1 any, arg2 ...*options.RunCmdOptions) (mongoifc.Cursor, error)

RunCommandCursor mocks base method.

func (*MockDatabase) Watch

Watch 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(arg0, arg1 any, arg2 ...any) *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(arg0 any, arg1 ...any) *gomock.Call

Collection indicates an expected call of Collection.

func (*MockDatabaseMockRecorder) CreateCollection

func (mr *MockDatabaseMockRecorder) CreateCollection(arg0, arg1 any, arg2 ...any) *gomock.Call

CreateCollection indicates an expected call of CreateCollection.

func (*MockDatabaseMockRecorder) CreateView

func (mr *MockDatabaseMockRecorder) CreateView(arg0, arg1, arg2, arg3 any, arg4 ...any) *gomock.Call

CreateView indicates an expected call of CreateView.

func (*MockDatabaseMockRecorder) Drop

func (mr *MockDatabaseMockRecorder) Drop(arg0 any) *gomock.Call

Drop indicates an expected call of Drop.

func (*MockDatabaseMockRecorder) ListCollectionNames

func (mr *MockDatabaseMockRecorder) ListCollectionNames(arg0, arg1 any, arg2 ...any) *gomock.Call

ListCollectionNames indicates an expected call of ListCollectionNames.

func (*MockDatabaseMockRecorder) ListCollectionSpecifications

func (mr *MockDatabaseMockRecorder) ListCollectionSpecifications(arg0, arg1 any, arg2 ...any) *gomock.Call

ListCollectionSpecifications indicates an expected call of ListCollectionSpecifications.

func (*MockDatabaseMockRecorder) ListCollections

func (mr *MockDatabaseMockRecorder) ListCollections(arg0, arg1 any, arg2 ...any) *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(arg0, arg1 any, arg2 ...any) *gomock.Call

RunCommand indicates an expected call of RunCommand.

func (*MockDatabaseMockRecorder) RunCommandCursor

func (mr *MockDatabaseMockRecorder) RunCommandCursor(arg0, arg1 any, arg2 ...any) *gomock.Call

RunCommandCursor indicates an expected call of RunCommandCursor.

func (*MockDatabaseMockRecorder) Watch

func (mr *MockDatabaseMockRecorder) Watch(arg0, arg1 any, arg2 ...any) *gomock.Call

Watch indicates an expected call of Watch.

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(arg0 context.Context, arg1 []mongo.IndexModel, arg2 ...*options.CreateIndexesOptions) ([]string, error)

CreateMany mocks base method.

func (*MockIndexView) CreateOne

func (m *MockIndexView) CreateOne(arg0 context.Context, arg1 mongo.IndexModel, arg2 ...*options.CreateIndexesOptions) (string, error)

CreateOne mocks base method.

func (*MockIndexView) DropAll

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

DropAll mocks base method.

func (*MockIndexView) DropOne

func (m *MockIndexView) DropOne(arg0 context.Context, arg1 string, arg2 ...*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(arg0 context.Context, arg1 ...*options.ListIndexesOptions) ([]*mongo.IndexSpecification, error)

ListSpecifications 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(arg0, arg1 any, arg2 ...any) *gomock.Call

CreateMany indicates an expected call of CreateMany.

func (*MockIndexViewMockRecorder) CreateOne

func (mr *MockIndexViewMockRecorder) CreateOne(arg0, arg1 any, arg2 ...any) *gomock.Call

CreateOne indicates an expected call of CreateOne.

func (*MockIndexViewMockRecorder) DropAll

func (mr *MockIndexViewMockRecorder) DropAll(arg0 any, arg1 ...any) *gomock.Call

DropAll indicates an expected call of DropAll.

func (*MockIndexViewMockRecorder) DropOne

func (mr *MockIndexViewMockRecorder) DropOne(arg0, arg1 any, arg2 ...any) *gomock.Call

DropOne indicates an expected call of DropOne.

func (*MockIndexViewMockRecorder) List

func (mr *MockIndexViewMockRecorder) List(arg0 any, arg1 ...any) *gomock.Call

List indicates an expected call of List.

func (*MockIndexViewMockRecorder) ListSpecifications

func (mr *MockIndexViewMockRecorder) ListSpecifications(arg0 any, arg1 ...any) *gomock.Call

ListSpecifications indicates an expected call of ListSpecifications.

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(arg0 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(arg0 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(arg0 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(arg0 ...*options.TransactionOptions) error

StartTransaction mocks base method.

func (*MockSession) WithTransaction

func (m *MockSession) WithTransaction(arg0 context.Context, arg1 func(mongoifc.SessionContext) (any, error), arg2 ...*options.TransactionOptions) (any, error)

WithTransaction mocks base method.

type MockSessionContext added in v1.0.0

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

MockSessionContext is a mock of SessionContext interface.

func NewMockSessionContext added in v1.0.0

func NewMockSessionContext(ctrl *gomock.Controller) *MockSessionContext

NewMockSessionContext creates a new mock instance.

func (*MockSessionContext) AbortTransaction added in v1.0.0

func (m *MockSessionContext) AbortTransaction(arg0 context.Context) error

AbortTransaction mocks base method.

func (*MockSessionContext) AdvanceClusterTime added in v1.0.0

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

AdvanceClusterTime mocks base method.

func (*MockSessionContext) AdvanceOperationTime added in v1.0.0

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

AdvanceOperationTime mocks base method.

func (*MockSessionContext) Client added in v1.0.0

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

Client mocks base method.

func (*MockSessionContext) ClusterTime added in v1.0.0

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

ClusterTime mocks base method.

func (*MockSessionContext) CommitTransaction added in v1.0.0

func (m *MockSessionContext) CommitTransaction(arg0 context.Context) error

CommitTransaction mocks base method.

func (*MockSessionContext) Deadline added in v1.0.0

func (m *MockSessionContext) Deadline() (time.Time, bool)

Deadline mocks base method.

func (*MockSessionContext) Done added in v1.0.0

func (m *MockSessionContext) Done() <-chan struct{}

Done mocks base method.

func (*MockSessionContext) EXPECT added in v1.0.0

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

func (*MockSessionContext) EndSession added in v1.0.0

func (m *MockSessionContext) EndSession(arg0 context.Context)

EndSession mocks base method.

func (*MockSessionContext) Err added in v1.0.0

func (m *MockSessionContext) Err() error

Err mocks base method.

func (*MockSessionContext) ID added in v1.0.0

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

ID mocks base method.

func (*MockSessionContext) OperationTime added in v1.0.0

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

OperationTime mocks base method.

func (*MockSessionContext) StartTransaction added in v1.0.0

func (m *MockSessionContext) StartTransaction(arg0 ...*options.TransactionOptions) error

StartTransaction mocks base method.

func (*MockSessionContext) Value added in v1.0.0

func (m *MockSessionContext) Value(arg0 any) any

Value mocks base method.

func (*MockSessionContext) WithTransaction added in v1.0.0

func (m *MockSessionContext) WithTransaction(arg0 context.Context, arg1 func(mongoifc.SessionContext) (any, error), arg2 ...*options.TransactionOptions) (any, error)

WithTransaction mocks base method.

type MockSessionContextMockRecorder added in v1.0.0

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

MockSessionContextMockRecorder is the mock recorder for MockSessionContext.

func (*MockSessionContextMockRecorder) AbortTransaction added in v1.0.0

func (mr *MockSessionContextMockRecorder) AbortTransaction(arg0 any) *gomock.Call

AbortTransaction indicates an expected call of AbortTransaction.

func (*MockSessionContextMockRecorder) AdvanceClusterTime added in v1.0.0

func (mr *MockSessionContextMockRecorder) AdvanceClusterTime(arg0 any) *gomock.Call

AdvanceClusterTime indicates an expected call of AdvanceClusterTime.

func (*MockSessionContextMockRecorder) AdvanceOperationTime added in v1.0.0

func (mr *MockSessionContextMockRecorder) AdvanceOperationTime(arg0 any) *gomock.Call

AdvanceOperationTime indicates an expected call of AdvanceOperationTime.

func (*MockSessionContextMockRecorder) Client added in v1.0.0

Client indicates an expected call of Client.

func (*MockSessionContextMockRecorder) ClusterTime added in v1.0.0

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

ClusterTime indicates an expected call of ClusterTime.

func (*MockSessionContextMockRecorder) CommitTransaction added in v1.0.0

func (mr *MockSessionContextMockRecorder) CommitTransaction(arg0 any) *gomock.Call

CommitTransaction indicates an expected call of CommitTransaction.

func (*MockSessionContextMockRecorder) Deadline added in v1.0.0

func (mr *MockSessionContextMockRecorder) Deadline() *gomock.Call

Deadline indicates an expected call of Deadline.

func (*MockSessionContextMockRecorder) Done added in v1.0.0

Done indicates an expected call of Done.

func (*MockSessionContextMockRecorder) EndSession added in v1.0.0

func (mr *MockSessionContextMockRecorder) EndSession(arg0 any) *gomock.Call

EndSession indicates an expected call of EndSession.

func (*MockSessionContextMockRecorder) Err added in v1.0.0

Err indicates an expected call of Err.

func (*MockSessionContextMockRecorder) ID added in v1.0.0

ID indicates an expected call of ID.

func (*MockSessionContextMockRecorder) OperationTime added in v1.0.0

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

OperationTime indicates an expected call of OperationTime.

func (*MockSessionContextMockRecorder) StartTransaction added in v1.0.0

func (mr *MockSessionContextMockRecorder) StartTransaction(arg0 ...any) *gomock.Call

StartTransaction indicates an expected call of StartTransaction.

func (*MockSessionContextMockRecorder) Value added in v1.0.0

func (mr *MockSessionContextMockRecorder) Value(arg0 any) *gomock.Call

Value indicates an expected call of Value.

func (*MockSessionContextMockRecorder) WithTransaction added in v1.0.0

func (mr *MockSessionContextMockRecorder) WithTransaction(arg0, arg1 any, arg2 ...any) *gomock.Call

WithTransaction indicates an expected call of WithTransaction.

type MockSessionMockRecorder

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

MockSessionMockRecorder is the mock recorder for MockSession.

func (*MockSessionMockRecorder) AbortTransaction

func (mr *MockSessionMockRecorder) AbortTransaction(arg0 any) *gomock.Call

AbortTransaction indicates an expected call of AbortTransaction.

func (*MockSessionMockRecorder) AdvanceClusterTime

func (mr *MockSessionMockRecorder) AdvanceClusterTime(arg0 any) *gomock.Call

AdvanceClusterTime indicates an expected call of AdvanceClusterTime.

func (*MockSessionMockRecorder) AdvanceOperationTime

func (mr *MockSessionMockRecorder) AdvanceOperationTime(arg0 any) *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(arg0 any) *gomock.Call

CommitTransaction indicates an expected call of CommitTransaction.

func (*MockSessionMockRecorder) EndSession

func (mr *MockSessionMockRecorder) EndSession(arg0 any) *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(arg0 ...any) *gomock.Call

StartTransaction indicates an expected call of StartTransaction.

func (*MockSessionMockRecorder) WithTransaction

func (mr *MockSessionMockRecorder) WithTransaction(arg0, arg1 any, arg2 ...any) *gomock.Call

WithTransaction indicates an expected call of WithTransaction.

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(arg0 any) 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) Raw added in v1.13.0

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

Raw 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(arg0 any) *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) Raw added in v1.13.0

Raw indicates an expected call of Raw.

Jump to

Keyboard shortcuts

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