mongofixture

package
v1.0.13064-eee01fa Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 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