# README
mocks

Overview
Package mocks defines mocks of mgo objects.
This package creates mocks objects that implements the same functions as the mgo objects. It implements interface defined on github.com/ddspog/mongo/elements package.
Usage
The package encourages to use the mock helper object MockMGOSetup, to call all the mocking methods returning the desired values. It was made to reduce number of lines when using the package.
# Functions
NewMockCollectioner creates a new mock instance.
NewMockDatabaser creates a new mock instance.
NewMockMGOSetup returns a new MockMGOSetup, already configuring mock environment for the mgo classes mocked with gomock.
NewMockQuerier creates a new mock instance.
NewMockSessioner creates a new mock instance.
# Structs
MockCollectioner is a mock of Collectioner interface.
MockDatabaser is a mock of Databaser interface.
MockMGOSetup it's a setup type for configuring mocking of mgo package.
MockQuerier is a mock of Querier interface.
MockSessioner is a mock of Sessioner interface.
MockSessionerMockRecorder is the mock recorder for MockSessioner.
# Interfaces
MockCollectionerMockRecorder is a recorder used for mocking purposes.
MockDatabaserMockRecorder is a recorder used for mocking purposes.
MockQuerierMockRecorder is a recorder used for mocking purposes.