mocks

package
v0.0.0-...-edfaf64 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoCollection

type MongoCollection struct {
	mock.Mock
}

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

type MongoDriver struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

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