Documentation ¶
Overview ¶
Tests package contains different helpers for testing purposes
Index ¶
Constants ¶
View Source
const TestDbPrefix = "test_"
Variables ¶
This section is empty.
Functions ¶
func PrepareTestDb ¶
Connect to mongo using addr, which must contain db name (mongodb://localhost/test_NAME) Be careful, database will be dropped.
func RandomTestMongoDown ¶
Remove testing database and close session
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.