Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithDB ¶
func WithDB(f func(dbtest TestDBRunner) int, reg *bsoncodec.Registry) int
WithDB will set up a test DB instance and pass it to `f` callback as `dbtest`. Once `f()` is finished, the DB will be cleaned up. Value returned from `f()` is obtained as return status of a call to WithDB(). reg is optional custom registry which can be set up for the test client.
Types ¶
Click to show internal directories.
Click to hide internal directories.