Documentation ¶
Overview ¶
Package mock_mongo is a generated GoMock package.
Index ¶
- type MockCursor
- func (m *MockCursor) All(arg0 context.Context, arg1 interface{}) error
- func (m *MockCursor) Close(arg0 context.Context) error
- func (m *MockCursor) Decode(arg0 interface{}) error
- func (m *MockCursor) EXPECT() *MockCursorMockRecorder
- func (m *MockCursor) Err() error
- func (m *MockCursor) Next(arg0 context.Context) bool
- type MockCursorMockRecorder
- func (mr *MockCursorMockRecorder) All(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCursorMockRecorder) Close(arg0 interface{}) *gomock.Call
- func (mr *MockCursorMockRecorder) Decode(arg0 interface{}) *gomock.Call
- func (mr *MockCursorMockRecorder) Err() *gomock.Call
- func (mr *MockCursorMockRecorder) Next(arg0 interface{}) *gomock.Call
- type MockDbClient
- type MockDbClientMockRecorder
- type MockDbCollection
- func (m *MockDbCollection) Aggregate(arg0 context.Context, arg1 interface{}, arg2 ...*options.AggregateOptions) (mongo.Cursor, error)
- func (m *MockDbCollection) BulkWrite(arg0 context.Context, arg1 []mongo0.WriteModel, ...) (*mongo0.BulkWriteResult, error)
- func (m *MockDbCollection) CountDocuments(arg0 context.Context, arg1 interface{}, arg2 ...*options.CountOptions) (int64, error)
- func (m *MockDbCollection) DeleteMany(arg0 context.Context, arg1 interface{}, arg2 ...*options.DeleteOptions) (int64, error)
- func (m *MockDbCollection) DeleteOne(arg0 context.Context, arg1 interface{}, arg2 ...*options.DeleteOptions) (int64, error)
- func (m *MockDbCollection) Distinct(arg0 context.Context, arg1 string, arg2 interface{}, ...) ([]interface{}, error)
- func (m *MockDbCollection) Drop(arg0 context.Context) error
- func (m *MockDbCollection) EXPECT() *MockDbCollectionMockRecorder
- func (m *MockDbCollection) Find(arg0 context.Context, arg1 interface{}, arg2 ...*options.FindOptions) (mongo.Cursor, error)
- func (m *MockDbCollection) FindOne(arg0 context.Context, arg1 interface{}, arg2 ...*options.FindOneOptions) mongo.SingleResultHelper
- func (m *MockDbCollection) FindOneAndDelete(arg0 context.Context, arg1 interface{}, ...) mongo.SingleResultHelper
- func (m *MockDbCollection) FindOneAndReplace(arg0 context.Context, arg1, arg2 interface{}, ...) mongo.SingleResultHelper
- func (m *MockDbCollection) FindOneAndUpdate(arg0 context.Context, arg1, arg2 interface{}, ...) mongo.SingleResultHelper
- func (m *MockDbCollection) Indexes() mongo0.IndexView
- func (m *MockDbCollection) InsertMany(arg0 context.Context, arg1 []interface{}, arg2 ...*options.InsertManyOptions) ([]interface{}, error)
- func (m *MockDbCollection) InsertOne(arg0 context.Context, arg1 interface{}, arg2 ...*options.InsertOneOptions) (interface{}, error)
- func (m *MockDbCollection) ReplaceOne(arg0 context.Context, arg1, arg2 interface{}, arg3 ...*options.ReplaceOptions) (*mongo0.UpdateResult, error)
- func (m *MockDbCollection) UpdateMany(arg0 context.Context, arg1, arg2 interface{}, arg3 ...*options.UpdateOptions) (*mongo0.UpdateResult, error)
- func (m *MockDbCollection) UpdateOne(arg0 context.Context, arg1, arg2 interface{}, arg3 ...*options.UpdateOptions) (*mongo0.UpdateResult, error)
- type MockDbCollectionMockRecorder
- func (mr *MockDbCollectionMockRecorder) Aggregate(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) BulkWrite(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) CountDocuments(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) DeleteMany(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) DeleteOne(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) Distinct(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) Drop(arg0 interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) Find(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) FindOne(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) FindOneAndDelete(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) FindOneAndReplace(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) FindOneAndUpdate(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) Indexes() *gomock.Call
- func (mr *MockDbCollectionMockRecorder) InsertMany(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) InsertOne(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) ReplaceOne(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) UpdateMany(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) UpdateOne(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- type MockSingleResultHelper
- type MockSingleResultHelperMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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
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) EXPECT ¶
func (m *MockDbClient) EXPECT() *MockDbClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
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
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 ¶
func (m *MockDbCollection) BulkWrite(arg0 context.Context, arg1 []mongo0.WriteModel, arg2 ...*options.BulkWriteOptions) (*mongo0.BulkWriteResult, error)
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 ¶
func (m *MockDbCollection) EXPECT() *MockDbCollectionMockRecorder
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
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
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 ¶
func (m *MockSingleResultHelper) EXPECT() *MockSingleResultHelperMockRecorder
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 ¶
func (mr *MockSingleResultHelperMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err