tests

package
v0.0.0-...-546184d Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package tests provides foundational support for running unit and integration tests.

Index

Constants

View Source
const (
	Success = "\u2713"
	Failed  = "\u2717"
)

Success and failure markers.

Variables

This section is empty.

Functions

func NewUnit

func NewUnit(t *testing.T) (url string, teardown func())

NewUnit creates a test value with necessary application state to run database tests. It will return the host to use to connect to the database.

Types

type DBContainer

type DBContainer struct {
	ID  string
	URL string
}

DBContainer tracks information about the DB docker container started for tests.

Jump to

Keyboard shortcuts

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