testutils

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package testutils provides utilities for use in tests

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidDBURI is returned when an invalid DB URI is used
	ErrInvalidDBURI = errors.New("invalid DB URI")
)

Functions

This section is empty.

Types

type TC

type TC struct {
	Container testcontainers.Container
	Dialect   string
	URI       string
}

func GetTestURI

func GetTestURI(ctx context.Context, u string) *TC

GetTestURI returns the dialect, connection string and if used a testcontainer for database connectivity in tests

Jump to

Keyboard shortcuts

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