Documentation ¶
Index ¶
- type FindOneExpectation
- type MongoClientMock
- func (mongoClient MongoClientMock) Disconnect() error
- func (mongoClient MongoClientMock) FindMany(ctx context.Context, collectionName string, query map[string]interface{}) ([]interface{}, error)
- func (mongoClient MongoClientMock) FindOne(ctx context.Context, collectionName string, query map[string]interface{}) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FindOneExpectation ¶
type MongoClientMock ¶
type MongoClientMock struct { FindOneError error FindOneResult interface{} FindManyError error FindOneExpectation func(collectionName string, query interface{}) FindManyExpectation func(collectionName string, query interface{}) FindManyResult []interface{} }
func (MongoClientMock) Disconnect ¶
func (mongoClient MongoClientMock) Disconnect() error
Click to show internal directories.
Click to hide internal directories.