Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoCollection ¶
MongoCollection is an autogenerated mock type for the MongoCollection type
func NewMongoCollection ¶
func NewMongoCollection(t mockConstructorTestingTNewMongoCollection) *MongoCollection
NewMongoCollection creates a new instance of MongoCollection. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MongoCollection) FindOne ¶
func (_m *MongoCollection) FindOne(ctx context.Context, filter interface{}, opts ...*options.FindOneOptions) *mongo.SingleResult
FindOne provides a mock function with given fields: ctx, filter, opts
type MongoDriver ¶
MongoDriver is an autogenerated mock type for the MongoDriver type
func NewMongoDriver ¶
func NewMongoDriver(t mockConstructorTestingTNewMongoDriver) *MongoDriver
NewMongoDriver creates a new instance of MongoDriver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MongoDriver) Connect ¶
func (_m *MongoDriver) Connect()
Connect provides a mock function with given fields:
func (*MongoDriver) Disconnect ¶
func (_m *MongoDriver) Disconnect()
Disconnect provides a mock function with given fields:
func (*MongoDriver) GetCollection ¶
func (_m *MongoDriver) GetCollection(collectionName string) *mongo.Collection
GetCollection provides a mock function with given fields: collectionName