databasetest

package
v0.0.0-...-c50d277 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpContainerLogs

func DumpContainerLogs(t *testing.T, c *Container)

DumpContainerLogs runs "docker logs" against the container and send it to t.Log

func StopContainer

func StopContainer(t *testing.T, c *Container)

StopContainer stops and removes the specified container.

Types

type Container

type Container struct {
	ID   string
	Host string // IP:Port
}

Container tracks information about a docker container started for tests.

func StartContainer

func StartContainer(t *testing.T) *Container

StartContainer runs a postgres container to execute commands.

Jump to

Keyboard shortcuts

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