mongofixture

package
v1.0.5877-d03a088 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package mongofixture will setup an isolated Mongo DB for your tests, so they don't interfere.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	URI string
}

type Fixture

type Fixture struct {
	DB   *mongo.Database
	Name string
	URI  string
}

func Setup

func Setup(ctx context.Context, t testing.TB, con Connection) *Fixture

Jump to

Keyboard shortcuts

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