test

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2023 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunWithMongoInDocker

func RunWithMongoInDocker(t *testing.T) (cleanUpFunc func(), cli *mongo.Client, err error)

RunWithMongoInDocker runs the tests with a mongodb instance in a docker container.

func RunWithMySQLInDocker

func RunWithMySQLInDocker(t *testing.T) (cleanUpFunc func(), db *gorm.DB, err error)

RunWithMySQLInDocker runs the tests with a MySQL instance in a docker container.

func RunWithRedisInDocker

func RunWithRedisInDocker(db int, t *testing.T) (cleanUpFunc func(), cli *redis.Client, err error)

RunWithRedisInDocker runs the tests with a redis instance in a docker container.

func SetupIndexes

func SetupIndexes(c context.Context, d *mongo.Database) error

SetupIndexes sets up indexes for the given database.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL