// StartMongoDB starts a MongoDB Docker container. The connection string is returned,
// as well as a function that should be invoked to stop the Docker container when it is
// no longer required.
StartMongoDB starts a MongoDB Docker container. The connection string is returned,
as well as a function that should be invoked to stop the Docker container when it is
no longer required.
// StartMongoDB starts a MongoDB Docker container . The connection string is returned // as well as a function that should be invoked to stop the Docker container when it is // no longer required .
func StartMongoDB(t *testing.T) (connection string, stop func()) {
	t.Helper()
	pool, mongoDBResource, mongoDBConnString := startMongoDBContainer(t)
	return mongoDBConnString, func() {
		if pool != nil && mongoDBResource != nil {
			require.NoError(t, pool.Purge(mongoDBResource))
		}
	}
}
func StartMongoDB ( t * testing . T ) ( connection string , stop func ( ) ) { t . Helper ( ) pool , mongoDBResource , mongoDBConnString := startMongoDBContainer ( t ) return mongoDBConnString , func ( ) { if pool != nil && mongoDBResource != nil { require . NoError ( t , pool . Purge ( mongoDBResource ) ) } } }
StartMongoDB starts a MongoDB Docker container.
StartMongoDB starts a MongoDB Docker container .