Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestClientCreator ¶
TestClientCreator returns a mongodb.CreateFn used to construct the mongo test client.
Types ¶
type TestCSData ¶
type TestCSData struct { DecodeErr error NewChange bson.M // contains filtered or unexported fields }
TestCSData is the data used to configure the test MongoDb ChangeStream.
type TestChangeStream ¶
type TestChangeStream struct {
Data TestCSData
}
TestChangeStream wraps the fake mongo.ChangeStream.
func (*TestChangeStream) Decode ¶
func (tCS *TestChangeStream) Decode(val interface{}) error
Decode implements mongo.Client.ChangeStream.Decode.
type TestClientData ¶
type TestClientData struct { CreateClientErr error ConnectErr error DisconnectErr error CloseErr error ListDbErr error Databases []string DbData TestDbData }
TestClientData is the data used to configure the test MongoDb client.
type TestDbData ¶
TestDbData is the data used to configure the test MongoDb Database.
Click to show internal directories.
Click to hide internal directories.