redisfixture

package
v1.0.9980-c3c1ab2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package redisfixture will setup an isolated Redis 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 {
	Addr string
}

type Fixture

type Fixture struct {
	*redis.Client
	DB int
}

func Setup

func Setup(ctx context.Context, t types.TestingTB, con Connection) *Fixture

Jump to

Keyboard shortcuts

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