Package mgotest provides standalone test instances of mongo sutable for use in tests.
Fatalf is satisfied by testing.T or testing.B.
ReplicaSet provides a configured ReplicaSet.
NewReplicaSet makes a new ReplicaSet with the given number of nodes.
Addrs for all the servers.
Session for the mongo ReplicaSet.
Stop the ReplicaSet.
Server is a unique instance of a mongod.
NewReplSetServer creates a new server starts it with ReplSet enabled.
NewStartedServer creates a new server starts it.
Session for the mongo server.
Start the server, this will return once the server has been started.
Stop the server, this will also remove all data.
URL for the mongo server, suitable for use with mgo.Dial.