redis_testcontainers

package module
v0.0.0-...-72d98e4 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContainer

func NewContainer(t *testing.T, ctx context.Context, image string) testcontainers.Container

NewContainer sets up and runs a docker redis container for the given image.

The container is cleaned up when the test ends.

func NewFactory

func NewFactory(ctx context.Context, image string) func(t *testing.T) testcontainers.Container

NewFactory generates a sweet compatible DepFactory that spins up Redis test containers of the given image.

Types

This section is empty.

Jump to

Keyboard shortcuts

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