mongotesting

package
v0.0.0-...-20002e4 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(c context.Context) (*mongo.Client, error)

NewClient creates a client connected to the mongo instance in docker.

func RunWithMongoInDocker

func RunWithMongoInDocker(m *testing.M) int

RunWithMongoInDocker runs the tests with a mongodb 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