mock_mongo

package
v0.0.0-...-9b5cd94 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package mock_mongo is a generated GoMock package.

Package mock_mongo 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) Decode

func (m *MockChangeStream) Decode(arg0 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(arg0 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(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 interface{}) *gomock.Call

Close indicates an expected call of Close.

func (*MockChangeStreamMockRecorder) Decode

func (mr *MockChangeStreamMockRecorder) Decode(arg0 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(arg0 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(arg0 interface{}) *gomock.Call

TryNext indicates an expected call of TryNext.

type MockCommandsRegister

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

MockCommandsRegister is a mock of CommandsRegister interface.

func NewMockCommandsRegister

func NewMockCommandsRegister(ctrl *gomock.Controller) *MockCommandsRegister

NewMockCommandsRegister creates a new mock instance.

func (*MockCommandsRegister) Clear

func (m *MockCommandsRegister) Clear()

Clear mocks base method.

func (*MockCommandsRegister) Commit

func (m *MockCommandsRegister) Commit(arg0 context.Context) error

Commit mocks base method.

func (*MockCommandsRegister) EXPECT

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

func (*MockCommandsRegister) RegisterInsert

func (m *MockCommandsRegister) RegisterInsert(arg0 interface{})

RegisterInsert mocks base method.

func (*MockCommandsRegister) RegisterUpdate

func (m *MockCommandsRegister) RegisterUpdate(arg0 string, arg1 primitive.M)

RegisterUpdate mocks base method.

type MockCommandsRegisterMockRecorder

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

MockCommandsRegisterMockRecorder is the mock recorder for MockCommandsRegister.

func (*MockCommandsRegisterMockRecorder) Clear

Clear indicates an expected call of Clear.

func (*MockCommandsRegisterMockRecorder) Commit

func (mr *MockCommandsRegisterMockRecorder) Commit(arg0 interface{}) *gomock.Call

Commit indicates an expected call of Commit.

func (*MockCommandsRegisterMockRecorder) RegisterInsert

func (mr *MockCommandsRegisterMockRecorder) RegisterInsert(arg0 interface{}) *gomock.Call

RegisterInsert indicates an expected call of RegisterInsert.

func (*MockCommandsRegisterMockRecorder) RegisterUpdate

func (mr *MockCommandsRegisterMockRecorder) RegisterUpdate(arg0, arg1 interface{}) *gomock.Call

RegisterUpdate indicates an expected call of RegisterUpdate.

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 interface{}) error

All mocks base method.

func (*MockCursor) Close

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

Close mocks base method.

func (*MockCursor) Decode

func (m *MockCursor) Decode(arg0 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) Next

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

Next 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 interface{}) *gomock.Call

All indicates an expected call of All.

func (*MockCursorMockRecorder) Close

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

Close indicates an expected call of Close.

func (*MockCursorMockRecorder) Decode

func (mr *MockCursorMockRecorder) Decode(arg0 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) Next

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

Next indicates an expected call of Next.

type MockDbClient

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

MockDbClient is a mock of DbClient interface.

func NewMockDbClient

func NewMockDbClient(ctrl *gomock.Controller) *MockDbClient

NewMockDbClient creates a new mock instance.

func (*MockDbClient) Collection

func (m *MockDbClient) Collection(arg0 string) mongo.DbCollection

Collection mocks base method.

func (*MockDbClient) Disconnect

func (m *MockDbClient) Disconnect(arg0 context.Context) error

Disconnect mocks base method.

func (*MockDbClient) EXPECT

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

func (*MockDbClient) IsDistributed

func (m *MockDbClient) IsDistributed() bool

IsDistributed mocks base method.

func (*MockDbClient) ListCollectionNames

func (m *MockDbClient) ListCollectionNames(arg0 context.Context, arg1 interface{}, arg2 ...*options.ListCollectionsOptions) ([]string, error)

ListCollectionNames mocks base method.

func (*MockDbClient) Ping

func (m *MockDbClient) Ping(arg0 context.Context, arg1 *readpref.ReadPref) error

Ping mocks base method.

func (*MockDbClient) SetRetry

func (m *MockDbClient) SetRetry(arg0 int, arg1 time.Duration)

SetRetry mocks base method.

func (*MockDbClient) WithTransaction

func (m *MockDbClient) WithTransaction(arg0 context.Context, arg1 func(context.Context) error) error

WithTransaction mocks base method.

type MockDbClientMockRecorder

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

MockDbClientMockRecorder is the mock recorder for MockDbClient.

func (*MockDbClientMockRecorder) Collection

func (mr *MockDbClientMockRecorder) Collection(arg0 interface{}) *gomock.Call

Collection indicates an expected call of Collection.

func (*MockDbClientMockRecorder) Disconnect

func (mr *MockDbClientMockRecorder) Disconnect(arg0 interface{}) *gomock.Call

Disconnect indicates an expected call of Disconnect.

func (*MockDbClientMockRecorder) IsDistributed

func (mr *MockDbClientMockRecorder) IsDistributed() *gomock.Call

IsDistributed indicates an expected call of IsDistributed.

func (*MockDbClientMockRecorder) ListCollectionNames

func (mr *MockDbClientMockRecorder) ListCollectionNames(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

ListCollectionNames indicates an expected call of ListCollectionNames.

func (*MockDbClientMockRecorder) Ping

func (mr *MockDbClientMockRecorder) Ping(arg0, arg1 interface{}) *gomock.Call

Ping indicates an expected call of Ping.

func (*MockDbClientMockRecorder) SetRetry

func (mr *MockDbClientMockRecorder) SetRetry(arg0, arg1 interface{}) *gomock.Call

SetRetry indicates an expected call of SetRetry.

func (*MockDbClientMockRecorder) WithTransaction

func (mr *MockDbClientMockRecorder) WithTransaction(arg0, arg1 interface{}) *gomock.Call

WithTransaction indicates an expected call of WithTransaction.

type MockDbCollection

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

MockDbCollection is a mock of DbCollection interface.

func NewMockDbCollection

func NewMockDbCollection(ctrl *gomock.Controller) *MockDbCollection

NewMockDbCollection creates a new mock instance.

func (*MockDbCollection) Aggregate

func (m *MockDbCollection) Aggregate(arg0 context.Context, arg1 interface{}, arg2 ...*options.AggregateOptions) (mongo.Cursor, error)

Aggregate mocks base method.

func (*MockDbCollection) BulkWrite

BulkWrite mocks base method.

func (*MockDbCollection) CountDocuments

func (m *MockDbCollection) CountDocuments(arg0 context.Context, arg1 interface{}, arg2 ...*options.CountOptions) (int64, error)

CountDocuments mocks base method.

func (*MockDbCollection) DeleteMany

func (m *MockDbCollection) DeleteMany(arg0 context.Context, arg1 interface{}, arg2 ...*options.DeleteOptions) (int64, error)

DeleteMany mocks base method.

func (*MockDbCollection) DeleteOne

func (m *MockDbCollection) DeleteOne(arg0 context.Context, arg1 interface{}, arg2 ...*options.DeleteOptions) (int64, error)

DeleteOne mocks base method.

func (*MockDbCollection) Distinct

func (m *MockDbCollection) Distinct(arg0 context.Context, arg1 string, arg2 interface{}, arg3 ...*options.DistinctOptions) ([]interface{}, error)

Distinct mocks base method.

func (*MockDbCollection) Drop

func (m *MockDbCollection) Drop(arg0 context.Context) error

Drop mocks base method.

func (*MockDbCollection) EXPECT

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

func (*MockDbCollection) Find

func (m *MockDbCollection) Find(arg0 context.Context, arg1 interface{}, arg2 ...*options.FindOptions) (mongo.Cursor, error)

Find mocks base method.

func (*MockDbCollection) FindOne

func (m *MockDbCollection) FindOne(arg0 context.Context, arg1 interface{}, arg2 ...*options.FindOneOptions) mongo.SingleResultHelper

FindOne mocks base method.

func (*MockDbCollection) FindOneAndDelete

func (m *MockDbCollection) FindOneAndDelete(arg0 context.Context, arg1 interface{}, arg2 ...*options.FindOneAndDeleteOptions) mongo.SingleResultHelper

FindOneAndDelete mocks base method.

func (*MockDbCollection) FindOneAndReplace

func (m *MockDbCollection) FindOneAndReplace(arg0 context.Context, arg1, arg2 interface{}, arg3 ...*options.FindOneAndReplaceOptions) mongo.SingleResultHelper

FindOneAndReplace mocks base method.

func (*MockDbCollection) FindOneAndUpdate

func (m *MockDbCollection) FindOneAndUpdate(arg0 context.Context, arg1, arg2 interface{}, arg3 ...*options.FindOneAndUpdateOptions) mongo.SingleResultHelper

FindOneAndUpdate mocks base method.

func (*MockDbCollection) Indexes

func (m *MockDbCollection) Indexes() mongo0.IndexView

Indexes mocks base method.

func (*MockDbCollection) InsertMany

func (m *MockDbCollection) InsertMany(arg0 context.Context, arg1 []interface{}, arg2 ...*options.InsertManyOptions) ([]interface{}, error)

InsertMany mocks base method.

func (*MockDbCollection) InsertOne

func (m *MockDbCollection) InsertOne(arg0 context.Context, arg1 interface{}, arg2 ...*options.InsertOneOptions) (interface{}, error)

InsertOne mocks base method.

func (*MockDbCollection) ReplaceOne

func (m *MockDbCollection) ReplaceOne(arg0 context.Context, arg1, arg2 interface{}, arg3 ...*options.ReplaceOptions) (*mongo0.UpdateResult, error)

ReplaceOne mocks base method.

func (*MockDbCollection) UpdateMany

func (m *MockDbCollection) UpdateMany(arg0 context.Context, arg1, arg2 interface{}, arg3 ...*options.UpdateOptions) (*mongo0.UpdateResult, error)

UpdateMany mocks base method.

func (*MockDbCollection) UpdateOne

func (m *MockDbCollection) UpdateOne(arg0 context.Context, arg1, arg2 interface{}, arg3 ...*options.UpdateOptions) (*mongo0.UpdateResult, error)

UpdateOne mocks base method.

func (*MockDbCollection) Watch

func (m *MockDbCollection) Watch(arg0 context.Context, arg1 interface{}, arg2 ...*options.ChangeStreamOptions) (mongo.ChangeStream, error)

Watch mocks base method.

type MockDbCollectionMockRecorder

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

MockDbCollectionMockRecorder is the mock recorder for MockDbCollection.

func (*MockDbCollectionMockRecorder) Aggregate

func (mr *MockDbCollectionMockRecorder) Aggregate(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Aggregate indicates an expected call of Aggregate.

func (*MockDbCollectionMockRecorder) BulkWrite

func (mr *MockDbCollectionMockRecorder) BulkWrite(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

BulkWrite indicates an expected call of BulkWrite.

func (*MockDbCollectionMockRecorder) CountDocuments

func (mr *MockDbCollectionMockRecorder) CountDocuments(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

CountDocuments indicates an expected call of CountDocuments.

func (*MockDbCollectionMockRecorder) DeleteMany

func (mr *MockDbCollectionMockRecorder) DeleteMany(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

DeleteMany indicates an expected call of DeleteMany.

func (*MockDbCollectionMockRecorder) DeleteOne

func (mr *MockDbCollectionMockRecorder) DeleteOne(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

DeleteOne indicates an expected call of DeleteOne.

func (*MockDbCollectionMockRecorder) Distinct

func (mr *MockDbCollectionMockRecorder) Distinct(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

Distinct indicates an expected call of Distinct.

func (*MockDbCollectionMockRecorder) Drop

func (mr *MockDbCollectionMockRecorder) Drop(arg0 interface{}) *gomock.Call

Drop indicates an expected call of Drop.

func (*MockDbCollectionMockRecorder) Find

func (mr *MockDbCollectionMockRecorder) Find(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Find indicates an expected call of Find.

func (*MockDbCollectionMockRecorder) FindOne

func (mr *MockDbCollectionMockRecorder) FindOne(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

FindOne indicates an expected call of FindOne.

func (*MockDbCollectionMockRecorder) FindOneAndDelete

func (mr *MockDbCollectionMockRecorder) FindOneAndDelete(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

FindOneAndDelete indicates an expected call of FindOneAndDelete.

func (*MockDbCollectionMockRecorder) FindOneAndReplace

func (mr *MockDbCollectionMockRecorder) FindOneAndReplace(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

FindOneAndReplace indicates an expected call of FindOneAndReplace.

func (*MockDbCollectionMockRecorder) FindOneAndUpdate

func (mr *MockDbCollectionMockRecorder) FindOneAndUpdate(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

FindOneAndUpdate indicates an expected call of FindOneAndUpdate.

func (*MockDbCollectionMockRecorder) Indexes

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

Indexes indicates an expected call of Indexes.

func (*MockDbCollectionMockRecorder) InsertMany

func (mr *MockDbCollectionMockRecorder) InsertMany(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

InsertMany indicates an expected call of InsertMany.

func (*MockDbCollectionMockRecorder) InsertOne

func (mr *MockDbCollectionMockRecorder) InsertOne(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

InsertOne indicates an expected call of InsertOne.

func (*MockDbCollectionMockRecorder) ReplaceOne

func (mr *MockDbCollectionMockRecorder) ReplaceOne(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

ReplaceOne indicates an expected call of ReplaceOne.

func (*MockDbCollectionMockRecorder) UpdateMany

func (mr *MockDbCollectionMockRecorder) UpdateMany(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

UpdateMany indicates an expected call of UpdateMany.

func (*MockDbCollectionMockRecorder) UpdateOne

func (mr *MockDbCollectionMockRecorder) UpdateOne(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

UpdateOne indicates an expected call of UpdateOne.

func (*MockDbCollectionMockRecorder) Watch

func (mr *MockDbCollectionMockRecorder) Watch(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Watch indicates an expected call of Watch.

type MockSingleResultHelper

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

MockSingleResultHelper is a mock of SingleResultHelper interface.

func NewMockSingleResultHelper

func NewMockSingleResultHelper(ctrl *gomock.Controller) *MockSingleResultHelper

NewMockSingleResultHelper creates a new mock instance.

func (*MockSingleResultHelper) Decode

func (m *MockSingleResultHelper) Decode(arg0 interface{}) error

Decode mocks base method.

func (*MockSingleResultHelper) DecodeBytes

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

DecodeBytes mocks base method.

func (*MockSingleResultHelper) EXPECT

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

func (*MockSingleResultHelper) Err

func (m *MockSingleResultHelper) Err() error

Err mocks base method.

type MockSingleResultHelperMockRecorder

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

MockSingleResultHelperMockRecorder is the mock recorder for MockSingleResultHelper.

func (*MockSingleResultHelperMockRecorder) Decode

func (mr *MockSingleResultHelperMockRecorder) Decode(arg0 interface{}) *gomock.Call

Decode indicates an expected call of Decode.

func (*MockSingleResultHelperMockRecorder) DecodeBytes

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

DecodeBytes indicates an expected call of DecodeBytes.

func (*MockSingleResultHelperMockRecorder) Err

Err indicates an expected call of Err.

Jump to

Keyboard shortcuts

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