Versions in this module Expand all Collapse all v0 v0.0.2 Feb 11, 2024 v0.0.1 Feb 10, 2024 Changes in this version + func GetMongoDSN() string + func New(ctx context.Context, dsn string, name string, logger *zap.Logger) *mongo.Client + type TestDB struct + Database mongostorage.StorageReaderWriter + MongoClient *mongo.Client + func NewTestDatabase(dsn, dbName string) (TestDB, error) + func (t *TestDB) TruncateCollection(collection string) + type TestDBSuite struct + DBName string + DSN string + func NewTestDBSuite(database string) TestDBSuite + func (t *TestDBSuite) DropCollection(collection string) + func (t *TestDBSuite) EnforceCollectionSchema(collectionName string, schemaPath string) error + func (t *TestDBSuite) SetupSuite() + func (t *TestDBSuite) TruncateCollection(collection string)